From: "SteveD" <nospam_steved94@attbi.com>
Subject: Re: Decimals after the point
Date: Sat, 09 Nov 2002 05:08:42 GMT
Date: 2002-11-09T05:08:42+00:00 [thread overview]
Message-ID: <uL0z9.20698$og.38042@rwcrnsc52.ops.asp.att.net> (raw)
In-Reply-To: 4bhy9.52855$T_3.627411@wagner.videotron.net
"Genevieve B." <geneb@videotron.ca> wrote in message
news:4bhy9.52855$T_3.627411@wagner.videotron.net...
> Hi!
>
> For a project at university, there is a bonus that is to check for only 2
> decimals after the point in a float.
> does anybody have an idea?
>
> I have an idea of putting my float into a string instead and then check
for
> the point...and then check for only 2 numbers after it...
>
I like your approach:
Straightforward.
Easy to understand.
Easy to verify.
Gets the job done.
SteveD
> Thank you
>
>
>
next prev parent reply other threads:[~2002-11-09 5:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 23:01 Decimals after the point Genevieve B.
2002-11-06 22:08 ` Decimals after the point (school question) Larry Kilgallen
2002-11-07 2:06 ` Decimals after the point Dennis Lee Bieber
2002-11-08 3:50 ` Steven Deller
2002-11-09 5:08 ` SteveD [this message]
2002-11-18 1:35 ` Richard Riehle
2002-11-18 5:17 ` Dennis Lee Bieber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox