Newsgroup: comp.lang.c++
Subject: Working with Large Values (double)
From: mrc2323@...
Date: Thu, 20 Feb 2014 17:25:50 -0700
How can I express a large value as a double? (e.g. 1000000.3)
Whereas this compiles and executes, when I try to convert it to a
string value it converts as a scientific string (e.g. "1e+006", not
"1000000.3"). I want to process all the characters of the value of the
data as a std::string.
Or is there a way to convert the double to assure it's not expressed
in scientific notation? TIA
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Subject: Working with Large Values (double)
From: mrc2323@...
Date: Thu, 20 Feb 2014 17:25:50 -0700
How can I express a large value as a double? (e.g. 1000000.3)
Whereas this compiles and executes, when I try to convert it to a
string value it converts as a scientific string (e.g. "1e+006", not
"1000000.3"). I want to process all the characters of the value of the
data as a std::string.
Or is there a way to convert the double to assure it's not expressed
in scientific notation? TIA
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://ift.tt/1gOIwiN
View all the progranning help forums at:
http://ift.tt/1dP9txN
No comments:
Post a Comment