Re: Decimal Point Truncations?
Re: Decimal Point Truncations?
- Subject: Re: Decimal Point Truncations?
- From: Michelle Steiner <email@hidden>
- Date: Thu, 8 Feb 2001 12:51:11 -0800
On 2/8/01 10:08 AM, Gregory Smith <email@hidden> wrote:
>
I want to get the disk size and display the result in Gb with one decimal
>
place (If possible). Currently, the full code above gets something like
>
54.6464646748783838. I would like it to display 54.6. I've tried rounding
>
and it returns the same 54.6464646748783838 for some reason that escapes me.
Well for some reason, I can't get a script to compile with that number of
decimal places, so using a number that can compile,
set foo to 54.646464674878
set bar to (round (foo * 10)) / 10
--54.6
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spritiual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------