I'm writing a widget for Uniface. I'm already pretty far but stumble accross a problem calculating minimum and maximum values as well as the steps in between. The chart has to manage float values. For instance:
the chart displays the following values:
x = 1; y = 12,5
x = 2; y = 21,7
y = 3; y = 30,5
The chart should get a y-axes with on top the value 40 and on the way down you should see the values 30, 20, 10 and of course 0 (zero). It should also work with negative values. My problem is: How do I determine what are the minimum and maximum values using floats. It's easy with integers but with floats its different.
Does any of you people have a routine lying arround that does my trick?