Post Reply 
integer division
01-31-2014, 01:46 PM
Post: #3
RE: integer division
Hello Thomas.
Yes, that works. I do the same with 1e6 as 'split', but I was wondering if there wasn't a shorter/faster way, knowing that

Q = INT(C*10^12 / X - R / X)

works for all cases save for 12-digit odd Q's where X = 2*R, which is quite rare indeed (and was the source for my second example)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
integer division - Werner - 01-30-2014, 03:30 PM
RE: integer division - Thomas Klemm - 01-31-2014, 04:44 AM
RE: integer division - Werner - 01-31-2014 01:46 PM
RE: integer division - Thomas Klemm - 01-31-2014, 03:50 PM
RE: integer division - Werner - 01-31-2014, 06:33 PM
RE: integer division - J-F Garnier - 02-01-2014, 06:06 PM
RE: integer division - Werner - 02-02-2014, 06:08 PM



User(s) browsing this thread: 1 Guest(s)