Displaying 1 result from an estimated 1 matches for "format_def".
Did you mean:
format_desc
2006 Aug 17
2
Creating function name from variables..
...pers for
each of the fields.
FLAGMEAN = [ " ", "!", "+", "-", "*" ] unless const_defined?("FLAGMEAN")
def format_abc(val, flag)
a = sprintf ("%.1f",(val/ 10.0))
b = FLAGMEAN[flag]
return a, b
end
def format_def(val, flag)
a = sprintf ("%.1f",(val/ 100.0))
........
end
These need to be separate function since the division factors, etc.
depend on the actual field (whether it is ''abc'', ''def'', ''klm'', ...) and
so I''m look...