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
I need some guidance on how to address this issue. If you have a XLFormRowDescriptorTypeDecimal row and you enter 0.94, it will display the value as 0.939999999999 due to the cast from NSString to double. I have traced this issue to
Should it be instead, [NSDecimalNumber decimalNumberWithString: self.textField.text]?
Is this an issue that needs to be fixed in the branch, or is this best addressed by creating a custom row?
Thanks,
Edwin
The text was updated successfully, but these errors were encountered:
eliang
changed the title
XLFormRowDescriptorTypeDecimal is not casting properly
XLFormRowDescriptorTypeDecimal is not casting properly from NSString to double
Aug 20, 2015
eliang
changed the title
XLFormRowDescriptorTypeDecimal is not casting properly from NSString to double
XLFormRowDescriptorTypeDecimal is not casting properly from NSString to double in the cell
Aug 20, 2015
* master: (27 commits)
Add property in XLFormTextViewCell to limit number of characters
Add property in XLFormTextFieldCell to limit number of characters
change XLFormUnspecifiedHeight constant to not collide with Automatic dimension
datePicker.locale property public to developer,for example, _birthdayRow = [XLFormRowDescriptor formRowDescriptorWithTag:kBirthdayTag rowType:XLFormRowDescriptorTypeDateInline title:@"Birthday"]; [_birthdayRow.cellConfig setObject:[[NSLocale alloc] initWithLocaleIdentifier:@"en"] forKey:@"locale"];
Refactored '-(id)init' to '- (instancetype)init'
Update 'initializeForm' example.
Update pod badge
[fixesxmartlabs#452] respect the currentLocale when parsing decimal values
Remove the fix for suppressing "Empty snapshot" warnings when presenting action sheets
Updated code to actually use the optionTitle variable
Fixed selector action sheet to use the row's value transformer
update pod version
added count to empty check. Helpful to validate multiple selectors being empty
Fix decimal number formatting. closesxmartlabs#514
Added height property to XLFormRowDescriptor
updated readme with some comments. Fixesxmartlabs#771, fixesxmartlabs#727, fixesxmartlabs#696
Add support for NSFormatter
Do validation can be nullable. fixesxmartlabs#705
fix crash when using cell style Value2. closesxmartlabs#770
Fix when the textFieldPercentage is applied. Closesxmartlabs#776
...
I need some guidance on how to address this issue. If you have a XLFormRowDescriptorTypeDecimal row and you enter 0.94, it will display the value as 0.939999999999 due to the cast from NSString to double. I have traced this issue to
Should it be instead,
[NSDecimalNumber decimalNumberWithString: self.textField.text]
?Is this an issue that needs to be fixed in the branch, or is this best addressed by creating a custom row?
Thanks,
Edwin
The text was updated successfully, but these errors were encountered: