-
1 Attachment(s)
Decimals, Digit grouping
Hi,
Working with dynamic drawing af graphs I'm experiencing some problems with.
Decimals.
Basicly text-files are loaded into an app that draw a chart
the text file looks like this ...
528;585;306;337;569;851;1015;964;912;692;918;635
On one PC the number 1015 is percieved as 1.015 regardless of the Regional settings on this PC??? (see attached gv_dec.gif)
Does anybody have a clue on what's going????
Any input is appreciated!
//poden
-
Can you control the limits of the axes? It looks like it's adjusting the number when it falls outside the range. Just a guess without knowing what graphing component you're using or seeing the code.
-
note the decimal sign in the BAD version.
It only fails on some PC's that in a way percieves 1015 as 1.015 ... so it seems to be a system issue!
-
The only thing I can think of is that something is causing the 1015 to be formatted as "1.105" (where the "," on an english system is being replaced by a "." because of the regional settings) but that the charting component doesn't understand the regional "." format and is misinterpreting it as a fractional value and messing up the chart.
-
I split the values into an array ...
528;585;306;337;569;851;1015;964;912;692;918;635
In a loop the values are converted to numbers
arrValues[i] = Number(arrValues[i])
Do you think this could trigger the Decimal sign?
-
It shouldn't, but the component you're assigning taht value to may be doing some conversion for you.