abs() / Reference

  • int a = abs(153);      // Sets 'a' to 153
    int b = abs(-15);      // Sets 'b' to 15
    float c = abs(12.234); // Sets 'c' to 12.234
    float d = abs(-9.23);  // Sets 'd' to 9.23