pike.git / lib / modules / Float.pmod

version» Context lines:

pike.git/lib/modules/Float.pmod:1: - // $Id: Float.pmod,v 1.4 2003/11/12 19:17:24 mast Exp $ + // $Id: Float.pmod,v 1.5 2004/12/15 00:40:46 nilsson Exp $      #pike __REAL_VERSION__      constant DIGITS_10 = __builtin.FLOAT_DIGITS_10;   constant MIN_10_EXP = __builtin.FLOAT_MIN_10_EXP;   constant MAX_10_EXP = __builtin.FLOAT_MAX_10_EXP;   constant MIN = __builtin.FLOAT_MIN;   constant MAX = __builtin.FLOAT_MAX;   constant EPSILON = __builtin.FLOAT_EPSILON;   
pike.git/lib/modules/Float.pmod:72:   //! The @expr{double@} type of the C compiler is used.   //! @item LONG_DOUBLE_PRECISION   //! The @expr{long double@} type of the C compiler is used.   //! @enddl   //!   //! @note   //! The float type can be controlled when Pike is compiled with the   //! configure flags @expr{--with-double-precision@} and   //! @expr{--with-long-double-precision@}. The default is to use the   //! longest available float type that fits inside a pointer. +  + //! Returns true if @[x] is nan. + int(0..1) isnan(float x) { return x!=x && floatp(x); }