Computer Science Canada
Truncating a real number
|Author:||omni [ Sun May 02, 2004 9:05 am ]|
|Post subject:||Truncating a real number|
How would I truncate all the decimals so then I could just have the whole number.
Now matter how big the decimal is, I just want the whole number.
Round() doesn't work here. Or would I have to make an algorithm to do it?
|Author:||Paul [ Sun May 02, 2004 9:09 am ]|
I think u can use floor. like
|Author:||guruguru [ Sun May 02, 2004 10:45 am ]|
Either works. Personal preference.