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
On a problem similar to finding if a numbers is a Armstrong number or not there you have to iterate over a string which results in chars, these chars has to be converted to int and in some cases they need to be raised by a very high value, meaning you can end up with really high numbers. Since char can't be converted directly to int128 but first int and then int128, would it be easier if chars just could be converted to int128. I know that this is a bit of a rare case but still feels like char should be able to be converted to int128.
Bug Report
On a problem similar to finding if a numbers is a Armstrong number or not there you have to iterate over a string which results in chars, these chars has to be converted to int and in some cases they need to be raised by a very high value, meaning you can end up with really high numbers. Since char can't be converted directly to int128 but first int and then int128, would it be easier if chars just could be converted to int128. I know that this is a bit of a rare case but still feels like char should be able to be converted to int128.
Code example:
Crystal 1.7:
My proposed changes:
The text was updated successfully, but these errors were encountered: