mantissa Questions

1

Solved

Intro: With Java floats, I noticed that when you add 1.0 to a certain range of tiny negative numbers, it equals 1.0. I decided to investigate this and learned a lot about how floats work in my ques...
Hagler asked 12/8 at 18:25

1

Solved

I am told that a double in C++ has a mantissa that is capable of safely and accurately representing [-(253 − 1), 253 − 1] integers. How is this possible when the mantissa is only 52 bits? Why is it...
Gottwald asked 19/9, 2022 at 17:34

5

Solved

I'm using NSDecimalNumber to store a value for currency. I'm trying to write a method called "cents" which returns the decimal portion of the number as an NSString with a leading 0 if the number is...
Dilks asked 18/3, 2011 at 17:34

3

Solved

I am new to Java, and wondering how does double to int cast work ? I understand that it's simple for long to int by taking the low 32 bits, but what about double (64 bits) to int (32 bits) ? those ...
Sashenka asked 20/9, 2012 at 14:34

3

Solved

From Significand entry in Wikipedia : When working in binary, the significand is characterized by its width in binary digits (bits). Because the most significant bit is always 1 for a normaliz...
Woolpack asked 20/8, 2012 at 13:36

2

In a very high performance app we find the the CPU can calculate long arithmetic significantly faster then with doubles. However, in our system it was determined that we never need more then 9 deci...
Larentia asked 19/1, 2012 at 13:26

1

Solved

I have some simple code that is comparing two float values to illustrate a problem I see with GCC's optimization and am hoping someone can help me figure out why the output it produces is different...
Lebkuchen asked 21/9, 2010 at 23:23
1

© 2022 - 2024 — McMap. All rights reserved.