Changes

Jump to: navigation, search

Locomotive BASIC

7 bytes added, 14:18, 26 February 2007
/* ROUND (n[,i1]) */
==== ROUND (n[,i1]) ====
: Rounds n to a number of decimal places or to the power of ten specified by i. If i is negative, the n is rounded to give an absolute integer with i zeros before the decimal point.
::''Example'':: <pre>PRINT ROUND(1562.357,2):PRINT ROUND(1562.375,-2) - prints 1562.36 1600</pre>
==== SGN (n) ====
197
edits