VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@FORMAT

Windows Linux macOS

Syntax

@FORMAT(<value>,<format>)

Description

This function returns <value> formatted in accordance with <format>, which must be in the form n.d where n is the minimum number of characters for the result and d is the number of decimal places. If only n is specified then two decimal places are assumed by default.

[VDS5] Spaces are trimmed from the result, so the minimum number of characters, n, is effectively ignored.

[VDS6] The result is a string which is right justified using spaces, if the total number of characters is less than n. The result will be left justified using spaces if the number of characters is specified as -n.

OK

Set to false if either of the arguments is null or non-numeric.

Example

OPTION DECIMALSEP,"."
DIALOG SET,AM1,£@FORMAT(%T,5.2)

See also