// ---------------------------------------------------------------------- // // abs_flt.cc - Do we have abs(float) in ? // // History: // 09-Sep-1999 WEB Initial draft, based on abs_dbl.cc // 15-Feb-2000 WEB Update to correspond to revised USING macro // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include int main() { USING(std::abs) return ( 0.0F == abs( 0.0F) && 1.0F == abs( 1.0F) && 2.0F == abs(-2.0F) ) ? 0 : 1 ; } // main()