I have a calculated field that returns a double "2.000" how can I format this to get rid of unneeded 0's? So that the following occurs:

  • When --> Returns
  • 2.000 --> 2
  • 2.500 --> 2.5
  • 2.510 --> 2.51
有帮助吗?

解决方案

Cast it into a double.

CBdl(value)

其他提示

In the Text box properties >> Format enter

#.####

This will display as you require.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top