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

NSDecimalNumber dividing crash #829

Open
zhangxiangguang opened this issue Jun 19, 2018 · 0 comments
Open

NSDecimalNumber dividing crash #829

zhangxiangguang opened this issue Jun 19, 2018 · 0 comments

Comments

@zhangxiangguang
Copy link

    var decimalNumber = NSDecimalNumber.decimalNumberWithString('12345678');
    console.log('log --> ' + decimalNumber); //log --> 12345678

    var dividingNumber = NSDecimalNumber.decimalNumberWithString('100');
    console.log('log --> ' + dividingNumber); //log --> 100

    //crash
    var number = decimalNumber.decimalNumberByDividingBy(dividingNumber);
    console.log('log --> ' + number);
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

1 participant