BIG numbers in C++

Started by
21 comments, last by ms291052 20 years, 1 month ago
Couldn''t you use scientific notation?

/*
I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)
*/
Advertisement
Using scientific notation would result in quite a loss in precision, which I think the OP wants.
quote:Original post by Anonymous Poster
okay ... that''s all really cool. One question ...
How small can you make a number???

Dave


As small as you want. If you''re asking what the smallest positivive real number you can store is, well, there isn''t one. You can, with only limitations imposed by hardware, store as small a positive real number as you want. For example, take the OP''s original large number - now just assume the radix point (decimal point) is all the way to left (it was previously assumed to be all the way to the right). You now all the sudden have a "tiny" number by comparison.

If you''re just talking ''smallest number'' - that just means being able to handle negative numbers. Just assume the OP''s number has a - sign, and you now have a really "small" number

This topic is closed to new replies.

Advertisement