What is Floating: Definition and 271 Discussions

In computing, floating-point arithmetic (FP) is arithmetic using formulaic representation of real numbers as an approximation to support a trade-off between range and precision. For this reason, floating-point computation is often used in systems with very small and very large real numbers that require fast processing times. In general, a floating-point number is represented approximately with a fixed number of significant digits (the significand) and scaled using an exponent in some fixed base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented exactly is of the following form:





significand

×


base


exponent


,


{\displaystyle {\text{significand}}\times {\text{base}}^{\text{exponent}},}
where significand is an integer, base is an integer greater than or equal to two, and exponent is also an integer.
For example:




1.2345
=



12345




significand


×



10




base















4





exponent




.


{\displaystyle 1.2345=\underbrace {12345} _{\text{significand}}\times \underbrace {10} _{\text{base}}\!\!\!\!\!\!^{\overbrace {-4} ^{\text{exponent}}}.}
The term floating point refers to the fact that a number's radix point (decimal point, or, more commonly in computers, binary point) can "float"; that is, it can be placed anywhere relative to the significant digits of the number. This position is indicated as the exponent component, and thus the floating-point representation can be thought of as a kind of scientific notation.
A floating-point system can be used to represent, with a fixed number of digits, numbers of different orders of magnitude: e.g. the distance between galaxies or the diameter of an atomic nucleus can be expressed with the same unit of length. The result of this dynamic range is that the numbers that can be represented are not uniformly spaced; the difference between two consecutive representable numbers varies with the chosen scale.

Over the years, a variety of floating-point representations have been used in computers. In 1985, the IEEE 754 Standard for Floating-Point Arithmetic was established, and since the 1990s, the most commonly encountered representations are those defined by the IEEE.
The speed of floating-point operations, commonly measured in terms of FLOPS, is an important characteristic of a computer system, especially for applications that involve intensive mathematical calculations.
A floating-point unit (FPU, colloquially a math coprocessor) is a part of a computer system specially designed to carry out operations on floating-point numbers.

View More On Wikipedia.org
  1. H

    Stirring tea with floating leaves

    I recently noticed that when a cup of tea was stirred, the floating leaves collect at center of cup rather than outer rim. Can anyone explain this?
  2. J

    Heating Mercury Affecting Floating Lead

    Homework Statement A flat, uniform cylinder of lead floats in mercury at 0 degrees Celsius. Will the lead float higher or lower then the mercury temperature is raised? Homework Equations None. The Attempt at a Solution Since the mercury is heated, then the density will be lower...
  3. Darth Frodo

    Finding the Relative Density of a Floating Sphere in Liquid

    Homework Statement A hollow spherical shell of external diameter of 1 metre and uniform thickness of 0.2m floats in a liquid with half its volume immersed. If the relative density is 1.5 find t 2 decimal places the relative density of the material of the shell. Homework Equations Buoyancy = Vρg...
  4. D

    Stability of a Large Barge: Determining Stability Using Weight Per Meter Length

    Homework Statement The question is regarding the stability of a large barge. Overall width=4m Uniform weight per meter length of M= 6327.19kg/m (This empty weight is uniformly distributed along the length of the barge. Center of gravity of the empty barge is at position G, 2m above the flat...
  5. L

    Intro Matlab Q, floating point system

    Homework Statement So this should probably be easy, but for some reason I just can't seem to understand matlab, AT ALL. Anywho, Consider a normalized floating point number system with b=2 p=3 L=-2 and U=2 , plot all the numbers in this system in a horizontal line, and observe... lalala...
  6. H

    Medical Floating Particles that are visible in the air question

    I wasn't quite sure where to ask this. If you've looked closely at the wall, you'll have noticed particles in the air that kinda swirl like static. So usually, it's pretty uniform, but I got a fluorescent bulbs today, and the air particles that usually just scramble about, look like they are...
  7. M

    Single precision floating point

    Homework Statement Convert 80/9 to single-precision floating-point. Homework Equations The Attempt at a Solution Right, I don't understand this at all but I'm trying to follow my notes, not very successfully.. 80/9 is positive so the sign bit is 0. Exponent is adjusted so...
  8. B

    MATLAB Matlab and floating point, function for min n max?

    so i found this program MATLAB on the computers at uni. I've been messing around with it. right now I am learning a bit about floating point systems and stuff and i thought it would be cool to write up a function that finds the smallest and largest numbers but turns out its harder than i first...
  9. U

    Floating point : (+inf - nan) = ? What the most correct way of handling this?

    Two pieces of maths software that I have handle these floating point "special values" differently. One returns +inf and the other returns nan. (For the calculation of +inf - nan). I can see some logic to both of those answers. I guess in first case it is following a rule that +inf - (anything...
  10. C

    So if I had a canoe floating in the water on earth it would sink lets

    So if I had a canoe floating in the water on Earth it would sink let's say 4 inches down. Now I take that same canoe with the same mass and put it in a lake on the moon, suppose the moon had a lake . Wouldn't the canoe also sink 4 inches down on the moon . Assuming the canoe had the same mass...
  11. S

    Fly Behavior in a Car or Glass Bottle

    fly floating in a car? :) Hi Last day we were arguing with my colleagues what will happen with a fly flying in a car when the car suddenly stops :) Will it go forwards (or backwards when the car is accelerating)? Or will it stay stationary? Suppose the following: - the car can stop (and...
  12. G

    MATLAB - floating point numbers

    Homework Statement Consider the following two equations: x^2 + y^2 = 42 x + 3y + 2y^2 = 6 Define a symbolic equation for each, and solve it by using MATLAB's symbolic capability. Could you solve these equations by using matrices? Try this problem twice, once using only integers in...
  13. R

    Dimensioning of big floating disc

    Is the following, ignoring that weight has been used as a force, correct? (excerpt from blog at http://floathaven.com/2011/07/the-solution-to-rising-waters-wednesday-blog/" )
  14. G

    Equation for a floating solid sphere

    Homework Statement A sphere is floating in water. It is pushed just under the water level and released. I'm asked to write the equation of motion for the sphere, not assuming small oscillations. Is it just: my''=\rho V g - mg ? Or do I have to include that the buoyant force is changing...
  15. Z

    Time period of oscillation of a pole floating

    Time period of oscillation of a pole floating... Homework Statement A pole is floating in a liquid with 80cm of its length immersed. It is pushed down a certain distance and released. What is its time period of vertical oscillation? The Attempt at a Solution I think the information...
  16. Loren Booda

    Behavior of foam: floating vs. submerged

    Consider a cylindrical glass containing a column of foam. How do the characteristics (e.g. size, geometry, surface width, air pressure, etc.) of the bubbles near the top differ from those near the bottom?
  17. M

    Investigating the Motion of Floating Particles in Escaping Powder Experiments

    I am doing experiment about escaping powder. In this experiment I am immersing hot wire into the water and investigating the motion of floating particles. What is the importance of thickness of wire? And what do you think about other parameters?
  18. T

    Anyone familiar with MIPS floating point instructions?

    Hello all. My task here was to have an array of floating point numbers, find the largest in the array, and store it back into the array. The first code shows a properly working integer interpretation of the task, and the second shows my interpretation of the floating point. I simply tried to...
  19. L

    Area Moment of Inertia & Stability of Floating Bodies

    Just totally confused which value to use to get the area moments of inertia with this question The ship was initially looks like this the mass of the ship is 5000 tonnes two heavy cargocontainers each of mass 73,370 Kg each assume that the ship has a rectangular waterline area, with length...
  20. T

    How Does Placement of Lead Affect the Buoyancy of a Wood Block?

    Homework Statement A block of wood has a mass of 3.84 kg and a density of 598 kg/m3. It is to be loaded with lead so that it will float in water with 0.89 of its volume immersed. The density of lead is 1.13 104 kg/m3. a)What mass of lead is needed if the lead is on top of the wood? b)What...
  21. F

    Boost Your Energy Efficiency: Discover the Benefits of Floating Solar Panels

    http://www.scientiaweb.com/2011/03/04/floating-solar-panels/ Sea is the place where they should be but too far from power grids :|
  22. J

    Tension and acceleration, one floating block, one sliding

    Need Simple Clarification: Tension and acceleration, one floating block, one sliding Homework Statement gravity is 9.81m/s2 m1 = 2.62kg m2 = 7.62kg [PLAIN]http://uploadpad.com/files/Screen_shot_2011-02-27_at_5.40.01_PM.png Assume the cord to be light (massless and weightless) and...
  23. Y

    What happen to a Fly floating in the air when the train start moving

    I was wondering, within a static train, for a fly which is currently floating in the air and not moving at all, what will happen if : 1) The train start to accelerate and moving forward. Will the floating fly experience inertia and being pushed backward? Does the inertia caused by air...
  24. S

    How to avoid a character value in integer or floating variables

    Hello everyone Thanks for viewing this topic for me... my question is when I tried to check user inputs a valid age it works only if a number is entered. If by mistake user inputs a character value (e.g. any character a to z or any symbol) this loop runs infinite How can I check if a...
  25. G

    Floating Wood: Finding the Ratio Above Water

    A block of wood with a density that is 750 kg/m3 is floating in a tank of water. How much of the wood is above the surface of the water D=M/V I've been trying for hours to try to figure this one out. The only info I'm given the the density of a block of wood in the water at...
  26. S

    Calculating the Volume Ratio of Concrete & Styrofoam for a Floating Bridge Pontoon

    Homework Statement In many locations, such as Lake Washington in Seattle, floating bridges are preferable to conventional bridges. Such a bridge can be constructed out of concrete pontoons, which are essentially concrete boxes filled with air, Styrofoam, or another extremely low-density...
  27. H

    Buoyancy problem: Deriving an equation for volume of a floating object

    Homework Statement The problem consists of a ball almost completely submerged. The exact question is: "An object with density ρO and mass m is floating in a pool of fluid with density ρF. Derive an expression for the volume of the object that is above the fluid." Homework Equations...
  28. P

    The distance from the top of a block floating in the water to water

    Homework Statement A 8 cm × 8 cm × 8 cm wood block with a density of 653.49 kg/m3 floats in water. What is the distance from the top of the block to the water if the water is fresh? Homework Equations The Attempt at a Solution weight= density*volume*g weight=653.49*(512)*9.8...
  29. R

    Can someone explain the concept of a floating electrostatic shield?

    Hello, I am trying to fully wrap my head around signal shielding so as to take it from the trial-and-error domain to the theoretical design domain. The problem is that I am stuck on one of the very basic and fundamental principles of shielding - the floating conductor as an electrostatic...
  30. S

    Hollow conducting sphere floating in oil

    Homework Statement A hollow sphere of gold floats in a large lake of oil of dielectric constant \kappa=3.3. The sphere is half immersed in the oil, and has a total charge of 2.2*10^-6 Coulombs. What fraction of this electric charge on the sphere is above the oil surface? Homework...
  31. B

    Fluid Mechanics - Floating Bodies

    Fluid Mechanics -- Floating Bodies Homework Statement A solid block with specific gravity 0.9 floats so that 75% of the body is submerged in water and the other 25% sits in an unknown fluid layered above the water. Find the specific gravity of the unknown fluid. density of water = 1000...
  32. J

    Simple Harmonic Motion, object floating in a liquid

    (apologies for the formatting, mixing LaTeX and regular text looks ugly, but I don't know how to do it otherwise) Homework Statement This is problem 3-7 from Thornton and Marion's Classical Dynamics. A body of uniform cross-sectional area A = 1 cm2 and of mass density \rho=0.8 g/cm3 floats...
  33. A.T.

    Ping-pong ball floating on a bowl of water

    Here is an experiment I found on youtube: Here is how I understand the setup: - A bucket with water spins on a turntable - The bucket is closed, so the air inside spins with the bucket & water : All three are at rest in the rotating frame (not 100% sure about this, but the ball moves slow...
  34. Pythagorean

    MATLAB MATLAB Floating Point: Find Better Way Than Rounding

    so I make a vector: V3 = [15.05:.05:15.15]; V3c = [14.75:.05:15.15]; find(V3c == Vc(2)) and I get nothing (no matches) apparently, when MATLAB constructed V3, it did so such that: V3(2) == 15.10000000000001 and V3c(8) == 15.10000000000000 what's the deal? My cheap way around this is: V3 =...
  35. S

    Floating a Jeep: How Many Litres of Air?

    How many litres of air do i need to make 1kg of steel float? If you're wondering what for? i am actually trying to make a small jeep float... :smile:
  36. G

    Minimum force to keep a mass floating in the air

    This is bugging me and maybe someon can help me find the obvious mistake: I want to calculate the minimum power needed to keep a mass of 1 kg floating in mid air. The naive approach is this: The mass falls 5 meters in one second so to get to the original position I have to invest an...
  37. X

    Object floating on the surface of water

    How to use a function f[x,y,z] to describe the shape of water surface when a tiny object is floating on it based on surface tension ONLY? Assume there is a tiny object floating on the water surface because of the surface tension, then the water surface will be deformed obviously. So how can...
  38. C

    Can a Floating Tensegrity Sphere Support a Mini-City in the Sky?

    I came across this online the other day: I came up with a formula for calculating the mass supported by such a sphere of air (as a function of temperature, height and radius), and just wanted to see if my math checks out. http://designbyninjas.com/calculation.jpg Also, since the air...
  39. C

    Graviational Field of Floating Mountain

    Homework Statement Consider a spherical mountain of radius a, mass M, floating in equililbrium in the earth, and whose density is half that of the earth. Assume that a is much less than the Earth's radius, so that the Earth's surface can be regarded as flat in the neighborhood of the...
  40. J

    Aspect ratio of cylinder floating in water?

    Aspect ratio of cylinder floating in water? Hi, Basically the question is: What is the aspect ratio (h/d) for a cylinder of specific gravity 0.65 above which it will float vertically? (Note use GM = I/V - BG) So i found a solution that is simliar and can help solve the problem. (please...
  41. W

    Clarification about gravity and floating in space

    I'm really confused about how we float in space. What is it that keeps us from falling through it? I've heard that astronauts in space are actually always falling, but move so fast that the Earth curves away from them. If that's the case, what would happen if we were in space but extremely...
  42. D

    Floating gate potential of a MOSFET

    Hi, First of all, I posted a similar question in [1] but I think it is the wrong forum and wrong question (maybe the reason why I get no answer...). I have to solve this (I think easy?) exercise: http://img705.imageshack.us/img705/8241/floatingmosfet.png I think (3.1) is easy and I solved...
  43. L

    Floating Arm Trebuchet Calculations and Predictions

    So, like quite a few others on this forum, I am building a trebuchet for a school physics class. While I am really enthusiastic about the project (who doesn't love giant medieval war machines?), I may be a little bit over my head in the calculations. So I hope I can give enough information...
  44. X

    Converting Decimal Numbers to Floating Point Representation

    1. Convert -45 and 3.54625 32-bit ( single precision) to floating point representation. I know how to convert positive and even decimal numbers, but I don't know how to do these. Is there somebody who knows? Help would be appreciated.
  45. M

    Floating Paper on an Electron Matrix

    Hello. What avoid us to insert our hands on a wall for example? i think its the electron force of each atoms right? so is it possible to construct a matrix of electrons, that will make a thin layer of electrons where a think paper can float ? Maybe an electron emission or something...
  46. K

    Floating in Sea Water vs. Floating in Fresh Water

    Homework Statement Really need help with this one. I don't quite know where to begin. If a ship loaded when floating in fresh water to a weight of 50,000 metric tons were floated in sea water of specific gravity 1.03, how much additional weight could she take on board without being...
  47. F

    358 in binary single floating point using excess 4

    i need to express 358 in binary single floating point format using excess 4 notation...i can do it easily using the 32-bit standard representation with the excess 127 exponent. i know that 358 is 101100110 therefore i assume floating point would be 1.01100110 with an exponent of 8. i know excess...
  48. C

    Fortran How Do I Determine Single-Precision Machine Constants in Fortran?

    Help! I know almost nothing about Fortran but need to use a program by others. I encountered a problem in determining the "Single-Precision Machine Constants" for my desktop computer (intel pentium dual core 5200 2mb l2 2.5ghz 800 fsb with Window Vista). Please take a look at following part or...
  49. Q

    A sphere with a given mass floating in water.

    Homework Statement A spherical aluminum ball of mass 1.26 kg contains an empty spherical cavity that is concentric with the ball. The ball just barely floats in water. Calculate a.) the outer radius of the ball. b.) the radius of the cavity. Homework Equations I think I have it...
  50. S

    Some question about floating seal

    Some question about floating seal Hi, everyone, I am designing a pulley that can be placed in 10-25m slurry (or you can treat it as sea water I think). Some ppl suggest that using a floating seal is much better than lip seal with back bone in such relatively high pressure situation. Due to the...
Back
Top