Changeset 208 for Include/Classes/System/Math.ab
- Timestamp:
- Apr 7, 2007, 10:20:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Math.ab
r162 r208 17 17 18 18 Static Function Abs(value As Double) As Double 19 If value<0 then 20 return -value 21 Else 22 return value 23 End If 19 SetQWord(VarPtr(value), GetQWord(VarPtr(value)) And &h7fffffffffffffff) 24 20 End Function 25 21 26 22 Static Function Abs(value As Single) As Single 27 If value<0 then 28 return -value 29 Else 30 return value 31 End If 23 SetDWord(VarPtr(value), GetDWord(VarPtr(value)) And &h7fffffff) 32 24 End Function 33 25 … … 209 201 'GetType 210 202 211 Static Function IEEERemainder(value1 As Double, value2 As Double) As Double203 Static Function IEEERemainder(value1 As Double, value2 As Double) As Double 212 204 Dim q As Double 213 205 If value2=0 then return _System_GetNaN() … … 616 608 Const _System_Atan_N = 20 617 609 Const _System_UrTan_N = 17 618 Const _System_D 610 Const _System_D = 4.4544551033807686783083602485579e-6 619 611 Const _System_HalfPI = (_System_PI * 0.5) 620 612 Const _System_InverseHalfPI = (2 / _System_PI) '1 / (PI / 2)
Note:
See TracChangeset
for help on using the changeset viewer.