by: Bryan |
last post by:
is there a way to make the Decimal class not print the exponent version of the
decimal?
>>> str(Decimal('1010'))
'1010'
>>> str(Decimal((0, (1, 0, 1), 1)))
'1.01E+3'
>>>
|
by: adahili |
last post by:
Hi,
I use cout to print numbers in scientific notation. I noticed that a
number like 12.34 is sometimes (compiler-dependent) printed as 1.234e+1
or 1.234e+01 or 1.234e+001. Since I know the...
|
by: Joseph Aldred |
last post by:
I am new to C and I am writing a program for a class I am taking. I need to
use a exponent but I can not figure how to do it. I figure I need to use
exp() or pow() but I can not figure out how to...
|
by: sankar |
last post by:
Hi,
I am using a Q14.18 value. There are tables used
in my program which are being indexed by the exponent and mantissa
parts of the corresponding floating point value.
So how can I get the...
|
by: Jens Bloch Helmers |
last post by:
How can I control the number of digits in the exponent when writing
floats to a file? It seems that Python2.4.2(winXP) prints three digits anyway.
>>> print 1.0e50
1e+050
>>> print '%e' %...
|
by: Protoman |
last post by:
I'm getting a compilation error with this program, something about the
instation of invArg; here's the code:
#include <iostream>
#include <cstdlib>
using namespace std;
template<class T>...
|
by: hrbigelow |
last post by:
hi,
i was wondering if anyone has ever seen a floating point library that
uses at least 20 bits to represent the exponent, rather than the 11
bits for a double-precision standard IEEE-754 float. ...
|
by: Anjo Gasa |
last post by:
I have a couple questions regarding iostreams output. I just finished
searching the group archive and don't believe they have been
specifically address before.
1. How can one remove leading...
|
by: Wayne Shu |
last post by:
Hei everyone:
Just see the output of the following program
#include <iostream>
#include <cstdlib>
#include <limits>
int main()
{
std::cout << "minimum exponent of double: " <<
|
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= |
last post by:
Hello,
By default, the "g" format specifier seems to use 2 digits in the exponent
if it decides to use the scientific format. I.e., Double.ToString("g"). How
do I control the number of...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|