Re: [SLUG] Anybody program in Python?

From: hcrab cc (hcrabcc@yahoo.com)
Date: Sun Sep 01 2002 - 04:07:13 EDT


Multiply one of the integers by 1.0 to get a float, (
1.0 * 2 )/5 = .4

Bryan

--- Russell Hires <rhires@earthlink.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello...
>
> There doesn't seem to be anything that references
> this that I can find. I
> want to produce a floating point result from the
> division of two integers,
> but in order to get that result, I have to enter the
> input as floats as well.
> In other words, 2/5 = 0, but 2.0/5 = .4. There's got
> to be a way around this
> limitation. I shouldn't have to force the user to
> enter a decimal point when
> they are inputting numbers.
>
> Anybody have any ideas?
>
> Russell
> - --
> Linux -- the OS for the Renaissance Man
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
>
iD8DBQE9cZHvAqKGrvVshJQRApD4AKDG9adPV6YGQYjLTMlROkk2PAphMwCfdZHU
> 0A6YGwyooc60MKvwjo75Akk=
> =6Fk6
> -----END PGP SIGNATURE-----

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:29:18 EDT