Skip to main content

Bug Tracker

Side navigation

#10942 closed bug (invalid)

Opened December 02, 2011 08:54PM UTC

Closed December 17, 2011 07:54AM UTC

Make a version of isNumeric() that is compatible with parse[Int|Float]

Reported by: jdmarshall Owned by: jdmarshall
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

Several bugs related to data() and large numbers have been dismissed as won't fix, duplicates, or wrong characterization. For example, Ticket #10856

The resolution states that these numbers ARE numeric, and they can be converted. However, converted while chopping off significant figures can't really be considered a success.

It would be better I think to have a function similar to isNumeric() but that only returns true when the number can be successfully converted into the appropriate Javascript data type. Then the spots that do this conversion should use that version.

Attachments (0)
Change History (2)

Changed December 02, 2011 10:23PM UTC by dmethvin comment:1

owner: → jdmarshall
status: newpending

Can you explain the use case for this new version, preferably in the form of a jsFiddle.net page that demonstrates the problem?

Changed December 17, 2011 07:54AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!