You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When using European numerical pad, decimal point is a comma (and not the dot we all know and use).
So when entering a number to a cell of numeric/float type , the "setValue" function inside FXForms.m convert it to double and basically remove the dot and practically convert it to int.
To handle it, the "double value" need to be replaced with NSNumber formatter.
This is the problematic line of code:
value = [(NSString *)value length]? @([value doubleValue]): nil;
These are the lines that can be used to replace the above:
NSNumberFormatter *nf = [NSNumberFormatter new];
value = [(NSString *)value length] ? @([[nf numberFromString:value] doubleValue]) : nil;
The result is a numeric number (with a dot instead of comma).
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
When using European numerical pad, decimal point is a comma (and not the dot we all know and use).
So when entering a number to a cell of numeric/float type , the "setValue" function inside FXForms.m convert it to double and basically remove the dot and practically convert it to int.
To handle it, the "double value" need to be replaced with NSNumber formatter.
This is the problematic line of code:
value = [(NSString *)value length]? @([value doubleValue]): nil;
These are the lines that can be used to replace the above:
NSNumberFormatter *nf = [NSNumberFormatter new];
value = [(NSString *)value length] ? @([[nf numberFromString:value] doubleValue]) : nil;
The result is a numeric number (with a dot instead of comma).
Thanks
The text was updated successfully, but these errors were encountered: