Hi, Please help me in seperating fractional and decimal part in a real number. For example: If the value is '1.23', I need to seperate decimal part '1' and 'fractional part '0.23'.
Thanks and regards, soumya..
No products are associated with this question.
i think the better way is to use: number = 1.23; integ = fix(number); fract = abs(number - integ);
it works for both negative and positive values.