fabs() Absolute value of number

fabs function returns absolute value.
Here are some examples with different type of numbers.
import math
print(math.fabs(-4))    # 4.0
print(math.fabs(-4.6))  # 4.6

print(math.fabs(4))     # 4.0
print(math.fabs(4.6))   # 4.6


Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer