Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie number format question

17 views
Skip to first unread message

Bob

unread,
May 6, 2012, 11:50:09 AM5/6/12
to
Hi gang,
I'm dividing one number by another and want the result to have one and
only one place after the decimal. I am currently using 'double(x)' for my
numbers but am gtting many places after the decimal. Any thoughts?

Thnaks!


Eugene

unread,
May 6, 2012, 12:03:39 PM5/6/12
to
One of the ways to do it is to use format command, for example:
% format %.2f [ expr 1024/3. ]
341.33

--
Best regards, Eugene.
0 new messages