HTBasic Help
×
Menu
Index

PROUND

Rounds the argument to the specified power of ten.
 
 PROUND( numeric-expression, power-of-ten )
 
Usage:
Logic=PROUND(Express,-2)
PRINT PROUND(Amount,Degree)
 
Example:           PROUND.BAS
 
Description:
The power-of-ten is a numeric expression, which is rounded to an integer. It specifies the digit position where the number should be rounded. Positive values are to the left of the decimal point and negative values are to the right. For example, PROUND(PI,0) rounds to the nearest integer (10^0) and PROUND(PI,-2) rounds to the nearest hundredth (10^(-2)).
 
See Also: