(11C) (15C) Convert German Units of Area Measurement

04092018, 02:47 PM
Post: #1




(11C) (15C) Convert German Units of Area Measurement
2 converter program for popular German units of area measurement.
Program A converts Saarlands to Fußballfelds. Program B converts Fußballfelds to Saarlands. (There is no way to convert to Metric or Imperial, why would you ever want to do that?) Code: ; Convert Saarlands to Fußballfelds 

04092018, 07:19 PM
Post: #2




RE: (11C) (15C) Convert German Units of Area Measurement
(04092018 02:47 PM)michaelzinn Wrote: Program A converts Saarlands to Fußballfelds. Maybe you should explain this to our nonGerman readers. ;) By the way: one "Fußballfeld" is mostly used to illustrate an area of 1 hectare (10.000 m²). Sure, the field itself usually is smaller, but the idea is to have a handy comparison. Based on this fact and the Saarland's area being 2570 km² a conversion factor of 257.000 may be more appropriate. Dieter 

04102018, 01:48 PM
Post: #3




RE: (11C) (15C) Convert German Units of Area Measurement
(04092018 07:19 PM)Dieter Wrote:(04092018 02:47 PM)michaelzinn Wrote: Program A converts Saarlands to Fußballfelds. Interesting! I didn't know that a Fußballfeld is just an alias for hectare when used as an area of measurement. That makes it even more confusing. 

04102018, 06:09 PM
Post: #4




RE: (11C) (15C) Convert German Units of Area Measurement
(04102018 01:48 PM)michaelzinn Wrote: Interesting! I didn't know that a Fußballfeld is just an alias for hectare when used as an area of measurement. That makes it even more confusing. Well, that's at least a common way of visualizing hectares. Here the term "entspricht einer Größe von fünf Fußballfeldern" simply is a translation of "5 Hektar". But also take a look at Wikipedia. So a hectare fits very well if you consider the whole area inside the 400 m track. By the way – if I remember correctly you once said you like "vintage programming", and in another thread you asked for traditional solutions to overcome the limits of simple programmable calculators. So maybe you will also like this idea: The 11C/15C has is only a limited number of labels. More important, it can only display numbers, there is no text output. Now... did [A] convert from Saarlands to Fußballfelds or was it the other way round? Here is a simple trick: since areas cannot be negative the sign may be used to flag a result. This way both conversions can be done with one single program: Code: LBL A Rule: Saarlands are positive, Fußballfelds are negative. Want it the other way round? Replace x<0? with x>0?. Convert 2 Saarlands: 2 [A] => –720.000 Since the result is negative you know that these are 720.000 Fußballfelds. Convert one Million Fußballfelds: –1.000.000 [A] => 2,7778 Since the result is positive you know that these are 2,8 Saarlands. Pressing [A] multiple times switches between the two units: 2 [A] => –720.000 [A] => 2 [A] => –720.000 [A] => 2 ... So the area is 2 Saarlands or 720.000 Fußballfelds. Dieter 

04102018, 06:59 PM
Post: #5




RE: (11C) (15C) Convert German Units of Area Measurement
(04102018 06:09 PM)Dieter Wrote:(04102018 01:48 PM)michaelzinn Wrote: Interesting! I didn't know that a Fußballfeld is just an alias for hectare when used as an area of measurement. That makes it even more confusing. Ah, you are using the sign as an additional input parameter. Great idea! 

04102018, 08:15 PM
Post: #6




RE: (11C) (15C) Convert German Units of Area Measurement  
« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)