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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When passing parameters in a JavaScript call Integers and Strings are converted just fine; but Floats aren't.
Why is this so?
Consider this code:
Instead, one has to resort to this:
Is this intended? Am I missing something? (seems like an overkill to me)
Also see my other thread about not being able to call
to_jsto a Float value.Link in "try Ruby Playground"
All reactions