Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

Syntax of FORMAT and ROUND


---
 Share

Recommended Posts

Hello,

Does anyone know where I can find the full syntax of the table expression keywords format and round?

Regarding format, the Tech Guide states that the "field width" can be adjusted, but it doesn't explain how.

The explanation regarding round is not clear. How can I round to 2 decimal places?

 

Best regards,

Erik

Edited
Link to comment
Share on other sites

Hi Erik,

For the format expression, I recommend to use the Fx button in the expression editor and enter the values in the dialog. You can late edit them in the code:

image.png.522e57580679900f97e2baf21a8f49b0.pngimage.png.91f0f3817b16262373c09c7c5ee2160d.pngimage.png.b35728e22197ec4ca7a639bbaa89860d.png

image.png.45817d2c83dfcae921597c92c8f4997b.png

... this will result in this code for example:

format (VALUE, "+98.0", show_unit=false)

For the rounding you could use Decimal places from the format() output.

Link to comment
Share on other sites

 Share

×
×
  • Create New...