PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB - Format Real Number
WB - Format Real Number
Iniciado por guest, 17,jul. 2017 01:48 - 3 respuestas
Publicado el 17,julio 2017 - 01:48
Hi All

Is there a function to display a real number in a string to two decimal places including if the decimal places are .00?

Cheers
André
Publicado el 17,julio 2017 - 07:12
Hi, of course, it's NumToString(YourReal,"10.2f")
Publicado el 17,julio 2017 - 08:06
Thanks Guenter - I can never remember the functions for WX [one of six languages we code in] and the online help only works for me if I actually know the function.
Publicado el 17,julio 2017 - 08:46
Hi Andre

typing, for instance, "string" and then hit F1. might help .(F1 It opens the online help )


regards
Allard