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

transform issue #63

Open
likol opened this issue Jun 1, 2022 · 2 comments
Open

transform issue #63

likol opened this issue Jun 1, 2022 · 2 comments

Comments

@likol
Copy link

likol commented Jun 1, 2022

toArabicString("一億兩千三百四十五萬六千七百八十九")

expect:

123456789

result

1000023456789
@spa5k
Copy link
Owner

spa5k commented Jun 1, 2022

Hey, I don't really have much idea why it's happening. This library was created by me as a port of one pretty old lib that had no typescript support.

Most possibly it's relating to some extra multiplication happening in one of the file.

Considering you're from Taiwan, maybe help a bit in debugging and see if you can find the error. My Chinese language knowledge is in negatives, so I don't think I can help much here.

@spa5k
Copy link
Owner

spa5k commented Jun 1, 2022

https://crates.io/crates/chinese-number

I found this rust crate, will try to do a napi version of it tomorrow and see if it works correctly

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

2 participants