Function yh_bigmoney(ByVal num As Double) As String
Dim intpart As Integer
Dim dotpart As Integer
Dim cm As Integer
intpart = Int(num)
dotpart = yh_round((num - intpart) * 1000)
Dim retval As String, dotval As String
Dim i As Integer
Dim pre0 As Boolean
' Debug.Write(intpart)
'Debug.WriteLine("")
'Debug.Write(dotpart)
'Debug.WriteLine("")
i = 0
pre0 = False
While intpart > 0
cm = intpart Mod 10
If cm = 0 Then
If i Mod 4 = 0 Then
retval = bigm1.Chars(i) & retval
ElseIf Not pre0 Then
retval = bigm.Chars(cm) & retval
Dim intpart As Integer
Dim dotpart As Integer
Dim cm As Integer
intpart = Int(num)
dotpart = yh_round((num - intpart) * 1000)
Dim retval As String, dotval As String
Dim i As Integer
Dim pre0 As Boolean
' Debug.Write(intpart)
'Debug.WriteLine("")
'Debug.Write(dotpart)
'Debug.WriteLine("")
i = 0
pre0 = False
While intpart > 0
cm = intpart Mod 10
If cm = 0 Then
If i Mod 4 = 0 Then
retval = bigm1.Chars(i) & retval
ElseIf Not pre0 Then
retval = bigm.Chars(cm) & retval