Numerical or Decimal types in C++?

Hi,

I was wondering if C++ has types to handle REALLY big numbers (let's say currency amounts with REALLY large sums) and whether these are not floating point (because one needs absolute precision in currency, like so:

currency amount = 10'000'000'000'000.45;
currency other = 1'000'000.55;
currency sum = amount + other;


Thanks
Juan
nope you would need a library for that.
maybe boost??
You're question has been answered hundreds of time, ask google and you'll find a lot of info about it, and you'll save time :)
You could use a 64 bit integer to represent the number of cents.
Topic archived. No new replies allowed.