Question:
Real number to Fixed and Floating point conversion?
3zzy
2007-04-16 02:15:28 UTC
If real number '260260' is converted into Fixed point and Floating Point numbers, what would be the output of both? Also how much space (bits/bytes) would they consume?

1. Convert 260260 into Fixed Point.
2. Convert 260260 into Floating point number.

Thanks
Three answers:
ZeroCarbonImpact
2007-04-16 02:44:18 UTC
What kind of computer and in what programming language are you talking about? What is the fixed point representation?



To represent the integer value 260,260 you need at least 18 bits.



IEEE 754 defines a standard floating point representation.
juart
2016-10-22 11:18:43 UTC
A variable is somewhat reminiscence that has been given a recognition. This piece of reminiscence is in all danger to alter its value in the path of the existence of this technique. it incredibly is variable. a real variety is likewise accepted as a persevering with. It would not substitute. The variety 3 is a persevering with. you could not substitute the variety 3 to a 2. in case you have been in a position to then it would be a distinctive consistent. a persevering with keeps to be the comparable. it incredibly is continuous. An integer is a variety with none decimal section. 40 5 is an integer. A string is somewhat text cloth. it incredibly is a million character or a collection of characters. it incredibly is a string "hi international" A string is in many situations text cloth in costs even though it would not would desire to be. text cloth in a document won't have costs. while it incredibly is study right into a application it's going to be study right into a string variable. A string may additionally carry numbers "40 5" yet you could not carry out mathematical operations on a string. have relaxing.
ZORCH
2007-04-16 02:25:24 UTC
A somewhat murky area, this. By "real number" I assume you mean an "Integer". "Floating Point" and "Fixed Point" are losely defined by every computer language somewhat differently. What you are asking is very language and platform dependent.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...