Fix typo in tick parse fn
The parsed result was being multiplied by the display_multiplier where it should have been divided by it. The parse fn is the inverse of the format fn, which multiplies by the display_multiplier
This commit is contained in:
1 parent
1e60c2fc78
commit
8fc55951eb
1 file changed
+1
-1
@@ -355,7 +355,7 @@ namespace mbts {
|
||||
return text.Length > 1 ? -_parse(tick, text[1..], display_multiplier, nan_text) : double.NaN;
|
||||
}
|
||||
if (double.TryParse(text, out var d)) {
|
||||
return double.IsNaN(display_multiplier) ? d : d * display_multiplier;
|
||||
return double.IsNaN(display_multiplier) ? d : d / display_multiplier;
|
||||
}
|
||||
var parts = text.Split(_separator(tick));
|
||||
double integer_part = _get_integer_part(parts[0]);
|
||||
|
||||
Reference in new issue
Block a user