| View previous topic :: View next topic |
| Author |
Message |
sprog90 Newbie

Joined: 21 Jul 2005 Posts: 20
|
Posted: Jun 15th, 2006 04:40 AM Post subject: Approximate an Integer |
|
|
I would like to approximate an Integer. I mean if I have the number 2512, how can I just take the approximation as 2500 or if I have the number 31768, how can I just take the approximation as 32000. Is there a function  |
|
| Back to top |
|
sprog90 Newbie

Joined: 21 Jul 2005 Posts: 20
|
Posted: Jul 9th, 2006 08:50 AM Post subject: |
|
|
I have find a solution but it is not exactly what i want.
| Code: | 'for the last 3
n1 = 43553
n2 = (n1 \ 1000) * 1000
'for the last 2
n1 = 43553
n2 = (n1 \ 100) * 100
etc
'Careful, it must be \ not / |
If someone else have a better solution please post it here! _________________ [link] |
|
| Back to top |
|
|