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
logo
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.
no blog for this page
IP:[65.110.21.43]
Your face IP:[54.235.29.110]
You are visitor number