The float tag has no wiki summary.
-3
votes
0answers
62 views
I want a way to dump float values that is not in decimal exponent
This there a way to dump float values that is not in decimal exponent?
I was thing of something like "-1U16" for -65536.0 AND -65536.0f
The exponent is a power 2.
3
votes
1answer
101 views
How to remove the boundary effects arising due to zero padding in scipy/numpy fft?
I have made a python code to smoothen a given signal using the Weierstrass transform, which is basically the convolution of a normalised gaussian with a signal.
The code is as follows:
...
38
votes
12answers
3k views
Is there an alternative to bits?
Is there an alternative to bits as the smallest unit of data? Something that won't be only 0 or 1, but actually hold many possible states inbetween? Wouldn't it be more natural to store floats like ...
0
votes
1answer
157 views
Conversion of a number from Single precision floating point representation to a Half precision floating point [closed]
I have a code where I have to work on Half precision floating point representation
numbers. To achieve that I have created my own C++ class fp16 with all operators(arithmetic logical, relational) ...
20
votes
6answers
1k views
What causes floating point rounding errors?
I am aware that floating point arithmetic has precision problems. I usually overcome them by switching to a fixed decimal representation of the number, or simply by neglecting the error.
However, I ...
23
votes
11answers
1k views
Why do you need float/double?
I was watching http://www.joelonsoftware.com/items/2011/06/27.html and laughed at Jon Skeet joke about 0.3 not being 0.3. I personally never had problems with floats/decimals/doubles but then I ...