Difference between revisions of "Fractional part"

 
m
Line 1: Line 1:
The '''fractional part''' of a real number <math>x</math>, usually denoted <math>\{x\}</math>, is equvalent to removing the integer part of <math>x</math>.  Thus <math>\{x\} = x - [x]</math>, where <math>[x]</math> denotes the [[floor function]].  For [[positive number]]s, this is equivalent to taking "everything after the decimal point," but this is ''not true'' for [[negative number]]s.  For example,
+
The '''fractional part''' of a real number <math>x</math>, usually denoted <math>\{x\}</math>, is equvalent to removing the integer part of <math>x</math>.  Thus <math>\{x\} = x - [x]</math>, where <math>[x]</math> denotes the [[floor function]].  For [[positive number]]s, this is equivalent to taking "everything after the decimal point," but this is ''not true'' in general for [[negative number]]s.  For example,
  
 
* <math>\{3.14\} = 0.14</math>
 
* <math>\{3.14\} = 0.14</math>
Line 8: Line 8:
  
 
The fractional part function has the [[real number]]s as its [[domain]] and the [[interval]] <math>[0, 1)</math> as its [[range]].
 
The fractional part function has the [[real number]]s as its [[domain]] and the [[interval]] <math>[0, 1)</math> as its [[range]].
 +
 +
 +
==See Also==
 +
 +
* [[Floor function]]
 +
 +
* [[Ceiling function]]

Revision as of 11:44, 29 June 2006

The fractional part of a real number $x$, usually denoted $\{x\}$, is equvalent to removing the integer part of $x$. Thus $\{x\} = x - [x]$, where $[x]$ denotes the floor function. For positive numbers, this is equivalent to taking "everything after the decimal point," but this is not true in general for negative numbers. For example,

  • $\{3.14\} = 0.14$
  • $\{5\} = 0$
  • $\{-3.2\} = 0.8$

The fractional part function has the real numbers as its domain and the interval $[0, 1)$ as its range.


See Also