Re: Modulo n arithmetics

dneedham@oucsace.cs.ohiou.edu (Douglas Wade Needham)
Wed, 11 Nov 1992 14:56:48 GMT

          From comp.compilers

Related articles
Modulo n arithmetics fabre@gr.osf.org (Christian Fabre) (1992-11-06)
Re: Modulo n arithmetics pardo@cs.washington.edu (1992-11-10)
Re: Modulo n arithmetics drclark@daisy.uwaterloo.ca (David R. Clark) (1992-11-11)
Re: Modulo n arithmetics dneedham@oucsace.cs.ohiou.edu (1992-11-11)
Modulo n arithmetics wchsieh@beethoven.lcs.mit.edu (1992-11-11)
Re: Modulo n arithmetics wendt@CS.ColoState.EDU (1992-11-15)
Re: Modulo n arithmetics johnr@ee.uts.edu.au (1992-11-17)
Re: Modulo n arithmetics chris@gargoyle.uchicago.edu (1992-11-19)
Re: Modulo n arithmetics tve@crackle.CS.Berkeley.EDU (1992-11-20)
Re: Modulo n arithmetics pcg@aber.ac.uk (1992-11-29)
| List of all articles for this month |

Newsgroups: comp.compilers
From: dneedham@oucsace.cs.ohiou.edu (Douglas Wade Needham)
Organization: Ohio University CS Dept,. Athens
Date: Wed, 11 Nov 1992 14:56:48 GMT
Summary: time/angle math
References: 92-11-029
Keywords: arithmetic

Christian Fabre <fabre@gr.osf.org> writes:
>I am wondering if any languages or application heavily rely on
>modulo arithmetics:


I can think of two very related uses, time and angle arithmetic. Both are
heavily base 60 oriented unless you convert into one of the sub-units
units (i.e. degrees, hours, minutes or seconds) and convert back when you
wish to display. If you are dealing more with the I/O of these and doing
simple operations, sometimes working with either DMS or HMS is better.
However, most of the time you are better off using fp or integer math and
converting to/from a single unit when doing I/O.


- doug
--
Email: dneedham@oucsace.cs.ohiou.edu
USnail: 2330 South Clinton Street, Fort Wayne,IN 46803
Phone: (219)455-4004 (office) (219)456-1420 (home)
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.