Changeset 184 for trunk/thune/math.c
- Timestamp:
- 06/12/06 01:58:22 (3 years ago)
- Files:
-
- 1 modified
-
trunk/thune/math.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/math.c
r132 r184 43 43 ur_decimal(tos) = func( ur_decimal(tos) ); \ 44 44 } else if( ur_is(tos, UT_INT) ) { \ 45 ur_ setType(tos, UT_DECIMAL); \45 ur_initType(tos, UT_DECIMAL); \ 46 46 ur_decimal(tos) = func( (double) ur_int(tos) ); \ 47 47 } … … 56 56 else if( ur_is(tos, UT_INT) ) 57 57 { 58 ur_ setType(tos, UT_DECIMAL);58 ur_initType(tos, UT_DECIMAL); 59 59 ur_decimal(tos) = conv * ur_int(tos); 60 60 } … … 125 125 else 126 126 { 127 ur_ setType( tos, UT_DECIMAL );127 ur_initType( tos, UT_DECIMAL ); 128 128 ur_decimal(tos) = mathSqrt( (double) ur_int(tos) ); 129 129 } … … 435 435 ur_globalCtx( ctx ); 436 436 val = ur_intern( &ctx, "pi", 2, 0 ); 437 ur_ setType( val, UT_DECIMAL );437 ur_initType( val, UT_DECIMAL ); 438 438 ur_decimal(val) = PI; 439 439
