printf
Posted: 2021年8月05日(木) 11:26
Windows10よりAB4にて数字を文字に変換したいのですが、下記だと0.00になってしまします。
何が悪いのでしょう?
Declare Function sprintf CDECL Lib "crtdll" (lpString As *Byte,lpFormat As *Byte,...) As Long
Dim a As Double
Dim b[10] as Byte
a=12.34
sprintf(b,"%.2f",a)
何が悪いのでしょう?
Declare Function sprintf CDECL Lib "crtdll" (lpString As *Byte,lpFormat As *Byte,...) As Long
Dim a As Double
Dim b[10] as Byte
a=12.34
sprintf(b,"%.2f",a)