Top "Absolute-value" questions

Absolute value is a mathematical function that returns the non-negative value of a number without regard to its sign.

How to convert a negative number to positive?

How can I convert a negative number to positive in Python? (And keep a positive one.)

python numbers absolute-value
Finding absolute value of a number without using Math.abs()

Is there any way to find the absolute value of a number without using the Math.abs() method in java.

java number-formatting absolute-value
Should I use np.absolute or np.abs?

Numpy provides both np.absolute and the alias np.abs defined via from .numeric import absolute as abs which seems …

python numpy absolute-value
How to obtain the absolute value of numbers?

I have a list of numbers that looks like the one below: [2, 3, -3, -2] How can I obtain a list …

python absolute-value
Integer absolute value in MIPS?

Do you have any simple ways to make a value in a register in MIPS as an absolute value?

assembly mips absolute-value
Which is the fastest way to get the absolute value of a number

Which is the fastest way to implement an operation that returns the absolute value of a number? x=root(x²) …

algorithm performance theory absolute-value
Math.abs returns wrong value for Integer.Min_VALUE

This code: System.out.println(Math.abs(Integer.MIN_VALUE)); Returns -2147483648 Should it not return the absolute value as 2147483648 ?

java absolute-value
Absolute value in vb.net

How do you get the absolute value of a number in vb.net? Is there a function built in? I …

.net vb.net absolute-value
isn't there an operator in c to change the sign of a int float etc from negative to positive or vice versa?

trying to find absolute value and i thought there was a simple way to just invert the sign with '~…

objective-c operators absolute-value negate
abs 'implicit declaration...' error after including math.h

I used the abs() function and I added #include <math.h> at the top of code. But I …

c math.h absolute-value