News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how do I do a MOD with fpulib

Started by ecube, August 26, 2009, 04:42:02 PM

Previous topic - Next topic

ecube

how do I do a MOD with fpulib since it doesn't seem to have a direct function to do it?


ecube

thanks dedndave, i'll try that. Since MOD afaik is the same as a DIV only the result being the remainder I been wastin time tryin to do tricky stuff with ramonds div function, but if its as simple as replacing the instruction, great :D

dedndave

that instruction (and fprem1) are just made for what you want
you could divide, subtract out the whole portion and multiply by the divisor - but that's a lot of work - lol