Sub ConvertNumber2Currency(MyNumber As Double) As String
Dim AHL As AHLocale 'need the AHlocale library
Dim res As String
AHL.InitializeUS
Dim MyFrac As Int =AHL.CurrencyFractionDigits
res = NumberFormat2(MyNumber,1,MyFrac,MyFrac,True)
Return res.SubString2(0,res.LastIndexOf("."))
End Sub