- Dionizas Antipenkovas
- PowerBuilder
- Tuesday, 11 June 2024 01:26 PM UTC
Hello Everyone,
working on extending existing PB application to support crypto, thus need to adopt application to work with DEC(27,18). PB support such datatype without a problem, but what about display formats? is there something similar to C#'s {0:#,0.####} to cut not needed digits at the end of number so only actual numbers and decimal places will be show?
If I use [General] format, the number 0.1342 is shown as 0.134200000000000, but I would like PB to cut not need zeros at the end. However, if number is 0.134200000000003 it should show 0.134200000000003
how to make PB datawindow show numbers right without additional conversion to string and parsing?
Thanks for advice.
BR,
Dionizas
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.