Changeset 119 for Include/basic/function.sbp
- Timestamp:
- Feb 23, 2007, 11:00:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/function.sbp
r110 r119 514 514 End If 515 515 End Sub 516 Function _ecvt(value As Double, count As Long, ByRef dec As Long, ByRef sign As Long) As BytePtr517 Dim temp As BytePtr516 Function _ecvt(value As Double, count As Long, ByRef dec As Long, ByRef sign As Long) As *Char 517 Dim temp As *Char 518 518 Dim i As Long, i2 As Long 519 519 … … 540 540 dec=1 541 541 While value<0.999999999999999 'value<1 542 value =value*10543 dec =dec-1542 value *= 10 543 dec-- 544 544 Wend 545 545 While 9.99999999999999<=value '10<=value 546 value =value/10547 dec =dec+1546 value /= 10 547 dec++ 548 548 Wend 549 549 … … 555 555 _System_ecvt_buffer[i]=0 556 556 557 i =i-1557 i-- 558 558 If value>=5 Then 559 559 '切り上げ処理 … … 562 562 563 563 For i=0 To count-1 564 _System_ecvt_buffer[i] =_System_ecvt_buffer[i]+&H30564 _System_ecvt_buffer[i] += &H30 565 565 Next 566 566 _System_ecvt_buffer[i]=0 … … 713 713 End Function 714 714 715 Function Val(buf As BytePtr) As Double715 Function Val(buf As *Char) As Double 716 716 Dim i As Long, i2 As Long, i3 As Long, i4 As Long 717 717 Dim temporary As String 718 Dim TempPtr As BytePtr718 Dim TempPtr As *Char 719 719 Dim dbl As Double 720 720 Dim i64data As Int64 … … 1024 1024 End Function 1025 1025 1026 Function _System_IsSurrogatePair(wcHigh As WCHAR, wcLow As WCHAR) As Boolean 1027 If &hD800 <= wcHigh And wcHigh < &hDC00 Then 1028 If &hDC00 <= wcLow And wcLow < &hE000 Then 1029 Return True 1030 End If 1031 End If 1032 Return False 1033 End Function 1026 1034 1027 1035 #endif '_INC_FUNCTION
Note:
See TracChangeset
for help on using the changeset viewer.