I have a double that I want to output as: (depending on its value)
1000 Bytes
1.6 Kilobyte
2.5 Megabytes
..5 Terabytes
can I do this with...
ostream & operator<<(ostr eam & o, double n)
How would you recommend going about outputting this?
1000 Bytes
1.6 Kilobyte
2.5 Megabytes
..5 Terabytes
can I do this with...
ostream & operator<<(ostr eam & o, double n)
How would you recommend going about outputting this?
Comment