function for x - floor(x)

I am trying to find a number's value after zero. x - floor(x) can do the job, but it seems to create a precision issue. For example, 2000.06 - floor(2000.06) == 0.06 will return FALSE in my case. Are there other functions that can perform this task without causing any precision issues?

I don't know the answer, but just wondering why don't you use all.equal?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.