Questions tagged [mantissa]

The mantissa of a floating-point number is the value m in the representation m × 2ᵉ, where e is the exponent. Use this tag for questions specifically about the mantissa of a floating-point number. For questions about floating-point numbers, use the [floating-point] tag instead. Do not use this tag for questions relating to the Divmod Mantissa application server.

The mantissa or significand of a floating-point number is the value m in the representation m × 2e, where e is the exponent.

60 questions
0
votes
1 answer

How to create vector (10^16 + 1, 10^16 + 2, ... , 10^16 + 1000) using R?

I would like to create the following vector (10^16 + 1, 10^16 + 2, ... , 10^16 + 1000). But if I try it like this: daten <- rep(1e+16,1000) daten + 1:1000 It gives me just an approximation: [1] 10000000000000000 10000000000000002 10000000000000004…
Joshua
  • 114
  • 1
  • 10
0
votes
1 answer

How to find the largest representable integer with exponent and mantissa?

I have a question needing to find the largest representable integer using (6 exponent and 9 mantissa) I know that there is a split of 5 bits for the exponent and 10 bits for the mantissa with 1 sign bit. I know how to find the low and high digits…
John Doee
  • 207
  • 4
  • 15
0
votes
1 answer

What is the maximum odd number thats float can represent

I have a question about the floating point. the question: Given a floating-point format with one sign bit, 8 exponent bits, and 23 fraction bits. what is the largest odd float number that can be represented exactly? I'm not sure but I think it =…
0
votes
1 answer

Normalization of float point when checking if the number is "harmonic divisor number (Ore number)"

My function isOre is checking if the number is "harmonic divisor number (Ore number)" or not (https://en.wikipedia.org/wiki/Harmonic_divisor_number#CITEREFCohenSorli2010). I can not rightfully compare if the "result variable" is integer number…
dinovoh
  • 81
  • 3
  • 4
0
votes
1 answer

Mantissa and Exponent - Negative number with decimal (beyond .5)

Here is my question. I am doing some work and am seeing two different answers. I was using a calculator (online) to check my answer and it is clashing with the answer I am supposed to get and I need to see which one is correct. The problem is:…
0
votes
2 answers

How can I extend/append a list with multiple indexes from a variable?

I am trying to create a binary32 floating point to decimal converter, which is made up of eight bits for the exponent and twenty four bits for the mantissa. I have exponent = [] and mantissa = []. If the user inputs 010000111111101101000000000000000…
August Williams
  • 907
  • 4
  • 20
  • 37
0
votes
1 answer

Floating point addition with LSB error

I'm implementing a hardware double precision adder with Verilog. During the verification phase when I compare my hardware output to MATLAB (or C) double precision addition outputs I found some weird cases where the LSB is not matching, taking into…
0
votes
1 answer

netezza Double Precision Output Truncates Vaules

I've noticed that the nzsql and 'nzunload' just truncates double precision column's mantissa values. Here is the issue: select tot_amt from table1; tot_amt ~~~~~~~ 123.124 567.678 while when I use other clients like Aginity for Data…
Arun Srini
  • 17
  • 1
  • 6
0
votes
2 answers

How to calculate number of mantissa bits?

I want to calculate number of mantissa bits in float and double. I know those numbers should be 23 and 52, but I have to calculate it in my program.
0
votes
1 answer

How do I convert a double to a 64bit ieee754?

I have this code: std::string GetBinary32( double value ) { union { float input; // assumes sizeof(float) == sizeof(int) int output; } data; data.input = value; std::bitset
yardening2
  • 61
  • 4
0
votes
1 answer

Slightly off Mantissa Value in printf

I am totally new to C langauge. Trying to pick up here. Hope you guys can help me a little, and sorry in advance if i asked something stupid, but i couldnt really find any answer to this specific question. also sorry for my english. Anyway below is…
Deetee
  • 9
  • 1
-1
votes
3 answers

Converting given mantissa, exponent, and sign to float?

I am given the mantissa, exponent, and sign and I have to convert it into the corresponding float. I am using 22 bits for mantissa, 9 bits for exponent, and 1 bit for the sign. I conceptually know how to convert them into a float, first adjusting…
-1
votes
1 answer

Does a subnormal number have an implicit 0?

I'm trying to understand what a subnormal number is and I'm guessing the exponent is fixed at -127 and to make the number smaller the implicit 1 is replaced with an implicit 0. Does this sound right?
-1
votes
2 answers

Floating Point representation for negative numbers

Using.... sign bit of mantissa 8 bit exponent in two's complement 23 bit mantissa code the following: -28.625 Can someone show me the easiest way to do this...lecturer wasn't very helpful!
-1
votes
2 answers

Floating point mantissa bias

Does anybody know how to go out solving this problem? * a = 1.0 × 2^9 * b = −1.0 × 2^9 * c = 1.0 × 2^1 Using the floating-point (the representation uses a 14-bit format, 5 bits for the exponent with a bias of 16, a normalized mantissa of 8 bits,…
user69514
  • 26,935
  • 59
  • 154
  • 188
1 2 3
4