Talk:Price fraction: Difference between revisions

From Rosetta Code
Content added Content deleted
(floating point for money: really really bad idea)
Line 9: Line 9:


Floating point for money? Don't they teach kids anything these days? --[[User:IanOsgood|IanOsgood]] 20:15, 15 March 2010 (UTC)
Floating point for money? Don't they teach kids anything these days? --[[User:IanOsgood|IanOsgood]] 20:15, 15 March 2010 (UTC)
:I've had that exact conversation with a friend in the past few weeks. All I can say is... I (at least) never think of the problems, or the alternatives. -- [[User:Eriksiers|Eriksiers]] 20:44, 15 March 2010 (UTC)

Revision as of 20:44, 15 March 2010

Table extension

What do you get for an input price of 0.99 or 1.00? --Paddy3118 09:56, 15 March 2010 (UTC)

What about invalid values?

What's supposed to happen if you get a negative number, or a number greater than 1.01? -- Eriksiers 19:13, 15 March 2010 (UTC)

Floating point for money?!

Floating point for money? Don't they teach kids anything these days? --IanOsgood 20:15, 15 March 2010 (UTC)

I've had that exact conversation with a friend in the past few weeks. All I can say is... I (at least) never think of the problems, or the alternatives. -- Eriksiers 20:44, 15 March 2010 (UTC)