Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with float conversion when using french UIKeyboardTypeDecimalPad #21

Open
ghost opened this issue Feb 28, 2013 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Feb 28, 2013

I I've noticed an issue when trying to enter a float value with a french UIKeyboardTypeDecimalPad.
In this case the string value is x,xxx and not x.xxx so [value floatValue] is just returning the decimal part.
What I suggest is to replace it by

float floatValue = [[value stringByReplacingOccurrencesOfString:@"," withString:@"."] floatValue];

in

  • (id)convertValueToObjectPropertyTypeIfNeeded:(NSString*)value attributeMapping:(FKFormAttributeMapping *)attributeMapping

of FKFormMapper.m

Thanks for the good job
Regards
Nicolas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants