Forum Discussion
Custom number format strings
- 1 year ago
Sorry, missed that and learned something.
What do you expect for output given those format strings.
The second one appears correct. What would you expect for your first format string?
The behavior you see is documented in the link you provided:
If the number to be formatted is nonzero, but becomes zero after rounding according to the format in the first or second section, the resulting zero is formatted according to the third section.
deleted as incorrect
- ZhangKun1 year ago
Super User
- ronrsnfld1 year ago
Super User
Sorry, missed that and learned something.
What do you expect for output given those format strings.
The second one appears correct. What would you expect for your first format string?
The behavior you see is documented in the link you provided:
If the number to be formatted is nonzero, but becomes zero after rounding according to the format in the first or second section, the resulting zero is formatted according to the third section.