Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

格式字符串示例

  • Last UpdatedSep 24, 2024
  • 1 minute read

以下字符串是货币字符串的示例:

String.Format("{0:$#,##0.00;($#,##0.00);Zero}", value);

此字符串示例将输出如下值:

  • $1,240.00,如果传递 1243.50

  • ($1,240.00),如果传递 -1243.50

  • 字符串 Zero,如果传递数字零。

以下字符串是电话号码字符串的示例:

String.Format("{0:(###) ###-####}", 8005551212);

此字符串示例将输出 (800) 555-1212