Remainder

1. Senior Member
Join Date
Dec 1969
Posts
521

## Remainder

Hi<BR><BR>How do I get the remainder of a number. e.g. 4.7<BR><BR>Thanks<BR><BR>Gary

2. Senior Member
Join Date
Dec 1969
Posts
11,247

## RE: Remainder

are you doing some sort of calculation? or are you wanting .7

3. God
Senior Member
Join Date
Dec 1969
Posts
18,177

## MOD ? (eop)

.

4. Senior Member
Join Date
Dec 1969
Posts
7,686

## RE: Remainder

Remainder = Number - Fix(Number)<BR><BR>Maybe you need Int instead of Fix. They behave differently with negative numbers<BR><BR>Fix(-1.4) returns -1<BR>Int(-1.4) returns -2

5. Senior Member
Join Date
Dec 1969
Posts
521

## I want to return the 7

So if the number was 4.7 I would want the 7<BR><BR>Thanks

6. God
Senior Member
Join Date
Dec 1969
Posts
18,177

## See Dutch's post then. (eop)

.

7. Senior Member
Join Date
Dec 1969
Posts
521

## That returns the whole number?!!?

Hi<BR><BR>I just want the value after the decimal place e.g 4.7 would give the value 7<BR><BR>Thanks<BR><BR>Gary

8. God
Senior Member
Join Date
Dec 1969
Posts
18,177

## No, his suggestion was..

.. to take the number and subract the whole number portion.<BR><BR>Read his post again.

9. Senior Member
Join Date
Dec 1969
Posts
7,686

## RE: That returns the whole number?!!?

My function does that, I&#039;m not sure what&#039;s not working.

10. God
Senior Member
Join Date
Dec 1969
Posts
18,177