Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Adding ability to output numbers #25

Merged
merged 2 commits into from
Apr 22, 2015
Merged

Adding ability to output numbers #25

merged 2 commits into from
Apr 22, 2015

Conversation

rtom-io
Copy link
Contributor

@rtom-io rtom-io commented Apr 21, 2015

No description provided.

@mlmorg
Copy link
Contributor

mlmorg commented Apr 21, 2015

Just wrap in a string?

r.p('5000');

@rtom-io
Copy link
Contributor Author

rtom-io commented Apr 21, 2015

That works for a literal string, but if your dealing with number in a var or JSON you'd have to call obj.number.toString() or do some other form of type coersion. I don't think you should have to do that

If we didn't want to support number types, it fails silently. At the minimum we should have a console.warn message about invalid types.

@mlmorg
Copy link
Contributor

mlmorg commented Apr 21, 2015

Ok. Can we add a test for it? Thanks!

mlmorg added a commit that referenced this pull request Apr 22, 2015
Adding ability to output numbers
@mlmorg mlmorg merged commit 0879c76 into master Apr 22, 2015
@mlmorg mlmorg deleted the rtom/support-numbers branch April 22, 2015 01:01
@mlmorg
Copy link
Contributor

mlmorg commented Apr 22, 2015

Published as v1.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants