Logo Search packages:      
Sourcecode: inkscape version File versions

double Inkscape::round ( double const   x  )  [inline]

Returns x rounded to the nearest integer. It is unspecified what happens if x is half way between two integers: we may in future use rint/round on platforms that have them. If you depend on a particular rounding behaviour, then please change this documentation accordingly.

Definition at line 14 of file round.h.

Referenced by decimal_round().

{
    return std::floor( x + .5 );
}


Generated by  Doxygen 1.6.0   Back to index