mixed base : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

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.


This page is posted
on the web at:

http://mindprod.com/jgloss/mixedbase.html

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

J:\mindprod\jgloss\mixedbase.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.191.21.86]
You are visitor number