Open Bug 1503571 Opened 1 year ago Updated 1 year ago

Description of parseFloat incorrect

Categories

(Developer Documentation :: JavaScript, enhancement, P3)

All
Other
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: heller, Assigned: sheppy)

Details

(Whiteboard: [specification][type:bug])

What did you do?
================
I read the description of parseFloat

What happened?
==============
If found the phrases "If the value is a string and first character cannot be converted to a number, parseFloat returns NaN." and "Leading and trailing spaces are allowed."

What should have happened?
==========================
I should find the phrases "If the value is a string and the first characters cannot be converted to a number, parseFloat returns NaN." instead (pluralized word "character"; strings starting with " ", ".", "+", "-", "\t", or "\n"  may possibly be parsed successfully) and "Leading and trailing white space characters and line terminators are allowed."

Is there anything else we should know?
======================================
Component: Wiki pages → JavaScript
Product: developer.mozilla.org → Developer Documentation
Assignee: nobody → eshepherd
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.