Functions.StrLong 方法 |
命名空间: XSharp.RT
FUNCTION StrLong( liNumber AS LONG, dwLength AS DWORD, dwDecimals AS DWORD ) AS STRING
public static string StrLong( int liNumber, uint dwLength, uint dwDecimals )
1LOCAL liNumber AS LONGINT 2liNumber := 12345L 3? StrLong(liNumber, 5, 0) // "12345" 4? StrLong(liNumber, 4, 0) // "****" 5? StrLong(liNumber, 2, 10) // "**" 6? StrLong(liNumber * 10, 7, 2) // "****.**" 7? StrLong(liNumber * 10, 12, 4) // " 123450.0000" 8? StrLong(liNumber, 10, 1) // " 12345.0"