Please create an account to participate in the Slashdot moderation system

typodupeerror

## Comment Re:Lessons (Score 1)497

If one is careful about rounding at the right time, one can live with Double for smaller amounts.

It's fine for a small amount, e.g. zero.

The next smallest amount 0.01 can not be held exactly in a Double. Nor can 0.1

DO NOT USE DOUBLE FOR MONEY.

(or for any figures which need to be stored exactly)

Multiply everything up by the required factors of 10 and store the value as an integer, e.g. a number of cents.

Or write your own decimal class, maybe with an integer to hold the dollars and another for the cents (and another for the tenths or hundredths if you need them).

## Comment Re:"Correct" Is Subjective (Score 1)154

TLDR Stupid people are usually too stupid to realise that they're stupid.

Ha ha ha, that's really funny, and smart, like me. Wait - why have I got the vague feeling like someone's been talking about me, and not in a nice way?

## Comment Re:It's a shame (Score 1)74

...you get banned from driving for a year...

...speed limit Nazis...

We have ways of making you walk!

## Comment Imaginary (Score 1)266

The best cube is -i

i^3 = i(i^2) = i(-1) = -i

Best cube (and i is the best cube root).

## Comment SQRT(EVAL) (Score 1)532

Why not just use evil itself?

Evil is in fact money squared.

This is so that money can have both negative and positive values.

I'm not sure whether imaginary evil works - it's bit complex for me.

(Yes I know that it's the love of money that's the root of all evil, but who doesn't love money?)

# Slashdot Top Deals

The IQ of the group is the lowest IQ of a member of the group divided by the number of people in the group.

Working...