Re: Rounding Down
[Prev][Next][Index][Thread]
Int (arg).
Returns the greatest integer less than arg.
(ie rounds down).
Int 3 = 3
Int 12.999= 12
Int -1.34 = -2
At 23:34 9/9/96 -0700, Cullen Stevenson wrote:
>Is there a built in function to round a number down to the near whole
>number? Especially on the 83. For example.. if a number is 2.6, i want it
>to display 2.
>
>
>
>+-----------------------+-----------------------------------+
>|Cullen Stevenson | Just because your name is |
>|cullen@net-link.net | Mister District Attorney, |
>|Kalamazoo, MI | doesn't mean you have to BE |
>| | a District Attorney! |
>+-----------------------+-----------------------------------+
>
>
+--------------------------------------------------------+
| Peter Kolbus +1.810.474.0872 |
| ae607@detroit.freenet.org #include <disclaimer.h> |
+--------------------------------------------------------+
| Due to financial difficulties, the light at the end of |
| the tunnel has been permanently disconnected. |
| |
| The packet goes out the card, into the copper, out |
| the router, onto the fiber, across the world, thru |
| the copper............ NOTHING BUT NET. |
| |
| ***Written using 100% recycled electrons*** |
| *** (80% post-consumer) *** |
+--------------------------------------------------------+
References: