PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How to separate whole Value and Mantissa from a Real Value
How to separate whole Value and Mantissa from a Real Value
Iniciado por guest, 29,dic. 2014 11:37 - 2 respuestas
Publicado el 29,diciembre 2014 - 11:37
I am stuck where I have to separate the Whole Number Part and its Mantissa from a Real number that results from various calculations.

For Example:
a, b, FinalA, FinalB is int c is real a = 22 b = 4 c = a/b Here I need to check whether the value in variable C had Mantissa or not. If it has Mantissa then I have to separate the Whole Number Part and its Mantissa and store the same in the variables FinalA and FinalB.

How to achieve this?

Are there any ready to use functions that we can use directly?

TIA

Yogi Yang
Publicado el 29,diciembre 2014 - 12:03
Hi,

You can use the functions DecimalPart() and IntegerPart()

Regards
Publicado el 29,diciembre 2014 - 13:09
WOW!! :xcool:

It never occurred to me to check for such function names!

Thanks for the hint.

Regards,

Yogi Yang