get decimal value

Hello,

How Xojo can return a decimal part of an argument ?
FRAC(1.652)= 0.652
Otherwise a must write function with Ceil and floor.

Perhaps split Funktion with . or , als separator? (not sitting in my desktop)

Function Frac(D as double) As Double dim entier as integer = D return D-entier End Function

It’s ok with Frac (D), it’s not necessary to split Tomas.
Merci Michel.

Split would work too, I just felt it would take more code.