mixed base : Java Glossary

mixed base
Humans like to create asymmetrical units of measure like yards/feet/inches, days/hours/minutes/seconds, degrees/minutes/seconds, gallons/quarts/pints/cups or cases/cartons/units.

To do conversions between the various level units is much like converting numbers between non-decimal bases, e.g. octal and hexadecimal. The key is using integer division and modulus. To see how it is done, look at the sample code for days/hours/minutes/seconds/microseconds.


available on the web at:

http://mindprod.com/jgloss/mixedbase.html
ClustrMaps is down

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\mixedbase.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Blog
IP:[65.110.21.43]
Your face IP:[54.198.224.121]
You are visitor number 8,253.