String.to_integer and Integer.parse! - how to cast the input value to integer?

Also please share how to cast the input value to integer?

I tried
String.to_integer and Integer.parse!, but they don’t seem to work at the moment.

2 Likes

Thanks for reporting, there’s an Erlang function that hasn’t been ported to JS, you’ll have a fix for this today :slight_smile:

3 Likes

@sreyansjain Branch enhancement-236-erlang-binary-to-integer-1 has :erlang.binary_to_integer/1 JS port implemented which should make String.to_integer/1 work correctly.

4 Likes