round()

round(x,n)
x : Input number .
n :(optional ) Input number of digits after decimal .
Returns float or integer after rounding the input number upto the given decimal.
print(round(12.34567))     # 12
print(round(-12.34567))    # -12
print(round(12))           # 12
print(round(-12))          # -12
print(round(12.34567,2))   # 12.35
print(round(-12.34567,3))  # 12.346


plus2net.com



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