Вопрос

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