Mar 152005
Today (well, actually yesterday) I started programming on a little application to practice calculations like:
0,1 m = … cm
100 cm3 = … dm3
The basic checking routine is there, now I need to create some sort of database that stores “unit1”, “unit2” and the “factor”, e.q. “m”, “cm”, “100”. I could make it very flexible by storing the factors for m(illi), c(enti), d(eci), M(ega), G(iga), but that would also mean some sort of stringmanipulation. The way I choose is flexible enough without loosing its simplicity. Also, I can now have “dozen”, “pieces”, “12” as a record.