Re: easy float question just eludes me

2005-07-28 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hullo all ! > > i have a real easy one here that isn't in my book. > i have a int number that i want to divide by 100 and display to two > decimal places. > > like this float(int(Var)/100) At present, int/int truncates, so this won't

Re: easy float question just eludes me

2005-07-28 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hullo all ! > > i have a real easy one here that isn't in my book. > i have a int number that i want to divide by 100 and display to two > decimal places. > > like this float(int(Var)/100) > but i need it to display the .00 even if it does not have a .00 value > like th

Re: easy float question just eludes me

2005-07-28 Thread nephish
oops, i dont seem to have a module decimal -shawn On 07/28/2005 08:48:27 AM, Simon Brunning wrote: > On 28 Jul 2005 06:39:32 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > i have a real easy one here that isn't in my book. > > i have a int number that i want to divide by 100 and display

Re: easy float question just eludes me

2005-07-28 Thread Sergei Organov
[EMAIL PROTECTED] writes: > Hullo all ! > > i have a real easy one here that isn't in my book. > i have a int number that i want to divide by 100 and display to two > decimal places. > > like this float(int(Var)/100) > but i need it to display the .00 even if it does not have a .00 value > like

Re: easy float question just eludes me

2005-07-28 Thread nephish
way cool, outta work out just fine On 07/28/2005 08:48:27 AM, Simon Brunning wrote: > On 28 Jul 2005 06:39:32 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > i have a real easy one here that isn't in my book. > > i have a int number that i want to divide by 100 and display to two > > dec

Re: easy float question just eludes me

2005-07-28 Thread Simon Brunning
On 28 Jul 2005 06:39:32 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i have a real easy one here that isn't in my book. > i have a int number that i want to divide by 100 and display to two > decimal places. > > like this float(int(Var)/100) > but i need it to display the .00 even if it d