Re: Locale definitions, dots and commas



wallace owen l-3com com wrote:

Dave Howorth wrote:
Martin (OpenGeoMap) wrote:

you can input in a entry for example (22m, 22 m, 220cm,...) and
internally you have a double always in meters.

How do you deal with precision? 22 m is not the same as 22.000 m

Bad example.  22 can be expressed exactly in 2s complement.  3 cannot.

Any integer can be exactly expressed in two's complement.

Doubles don't use two's complement.  They can also exactly represent a
very large number of integers.

- Ernie                                  http://home.comcast.net/~erniew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]