flat assembler
Message board for the users of flat assembler.

Index > Windows > any way to get float division remainder?

Author
Thread Post new topic Reply to topic
dave_30



Joined: 15 Dec 2012
Posts: 14
dave_30
is there anyway to get the remainder of two float numbers division?
example:
2.5 / 2.0 = 2
remainder = 0.5
i just want to get the remainder not the result.
Post 13 Jan 2013, 19:03
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 22:01; edited 2 times in total
Post 13 Jan 2013, 19:32
View user's profile Send private message Reply with quote
dave_30



Joined: 15 Dec 2012
Posts: 14
dave_30
that was just an example the main thing is there anyway to get remainder if there's any in floating point division?
Post 13 Jan 2013, 19:58
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 22:01; edited 1 time in total
Post 13 Jan 2013, 20:04
View user's profile Send private message Reply with quote
SeproMan



Joined: 11 Oct 2009
Posts: 60
Location: Belgium
SeproMan
dave_30,

You can use the instruction "fprem" to obtain this remainder.
Consult the Intel manuals for details...

_________________
Real Address Mode.
Post 13 Jan 2013, 22:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.