<[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
[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
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
[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
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
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