parsefloat

Solutions on MaxInterview for parsefloat by the best coders in the world

showing results for - "parsefloat"
Augustin
31 Feb 2020
1// parseFloat takes in a string value and converts it to a float 
2// The parseFloat function will look at the first character of
3// the string and decided whether that character is a number or not
4// If not the parseFloat function will return Nan
5
6let stringNumber = "8.0"
7
8let floatNuumber = parseFloat(stringNumber);
Victor
08 Jun 2020
1 var subtotal = parseFloat(val) + parseFloat(tax) + parseFloat(imp) + parseFloat(env);
2 var subtotal = subtotal.toFixed(2); //two decimal places
Carl
28 Jan 2020
1// parseInt
2parseInt("10");//------------ 10
3parseInt("10.00");//--------- 10
4parseInt("10.33")//--------- 10
5parseInt("34 45 66")//------ 34
6parseInt("   60   ")//------ 60
7parseInt("40 years")//------ 40
8parseInt("He was 40")//----- NaN
9parseInt("10", 10)//-------- 10
10parseInt("010")//----------- 10
11parseInt("10", 8)//--------- 8
12parseInt("0x10")//---------- 16
13parseInt("10", 16)//-------- 16
14// parseFloat
15parseFloat("10")//-----------10
16parseFloat("10.00")//--------10
17parseFloat("10.33")//--------10.33
18parseFloat("34 45 66")//-----34
19parseFloat(" 60 ")//---------60
20parseFloat("40 years")//-----40
21parseFloat("He was 40");//----NaN
22/ mm.mirzaei /
Lennox
21 Nov 2017
1//parseFloat() parses a string and returns a number. Spaces are allowed. Only the first number is returned:
2
3Example
4
5parseFloat("10");
6parseFloat("10.33");
7parseFloat("10 20 30");
8parseFloat("10 years");
9parseFloat("years 10");
queries leading to this page
conversion to float jsjs format string to floathow you convert a string to a floating point number javascriptjavascruipt strign to floatparsefloat angular htmlhow do convert string to float in jsnegative string number to float javascriptangularjs parsefloatconvert string to double javasctipparseint in jaavascriptjs extract float from stringhow to convert to float in javascriptjavascript how to convert to floatstring to floatt jshow to convert string in float in javascriptnode js convert to floatjjs to floatconvert to float in javascriptsgtring to float jscorejavascript and convert to floatjavascript extract float from stringparsefloat in js used forparseint negativeparse inthwo to covert to a float jsjquery float parseconvert float jsparse decimal in javascriptjs parsefloat parse string in javascript for doubleparsefloat 28readline 28 29 29 3bhow to convert string to float in node jsnodejs parsefloattypecast javascript floatconvert string into float type javascriptconvert string to floatconvert en double javascriptjavascript parse doublejavascript to float from stringconvvert string to float javascriptmake string into float javascriptparseint jsw3schoolshow to convert the string into double in jsparseint 28num1 2c 10 29parsefloat output parsefloat 28 29set as float javascriptconvert text to float32 jsparsefloat in a function jsjavascript convert floattry parsefloat javascriptparsefloat es6best way to parsefloat javascriptjavascript string to float floatparsefloat double precisionstring to float angularjs parse inthow to convert string to float in javascriptjavascript float parsehow to convert int float in jsjs convert string to floatwhen to use parsefloat in javascriptparsefloat useparse int w3schoolreact parsefloatconvert string to float number javascriptparsefloat from string javascriptjs parseint exampleangular try parsefloatparse sstring to float jqueryperse float jsparsefloat rounding by default javascriptint parse jsconver string to float in jsparsefloatjavascript parse string to doublestring to double jsjs convert string to float as isjavascript bankig app parse floatjs number parse doubleparseint 0 javascriptwhy using javascript parsefloat 3fwhat does parseint doparseint vs number parseintjquery parsefloat functionparsefloat 28b 2c10 29javascript text to floatjavascript convert string to floatparse float from string jsnumber parse in jsjs streing to floatconvert string to double float number javascriptparsefloat 0what is a parseint in jsstring to float javascript ema4javascript change string to floatstring to floatjavascriptjavascript parse string to return floatparse as floast jsfloat jqueryfloatval is not defined jqueryhow to parse string to float in jsmake string a float javascriptjquery text to floatparsefloat avascripthow to use parseint using javascriptjquery parse decimaljquery convert string to floatjavascript int returned as floatjavascript string as floatjavascript convert string to realconvert str to double jsparsefloat equationjquery convert to floatint i 3dinteger parseint 28s 29 3bjavascript conver to floatjquery text as floatwhat is integer parseint 28 29 3bparce floatconverting string to float number in javascripttodouble jsparsing to float in javascripthow to convert string to float jshow to convert as a float number in jsjavascript text to decimalcast to float javascriptconverter string para float javascript 2b 3d parsefloatto float in javascriptjs stirng to doublefloat newtotal 3d float parsefloat 28newtotalp 29 3bstring to float in react jsjavascript to doublejs how to parse string to floatal 28parseintjs parse float from stringjquery tofloatconvert string to double jsfparse float approximationjshow to parse string to float in javascjavascript parsefloat to string formattofloat javascripthow to use parsefunction in javascriptparsefloat javascripttjavascript typecast to floatconvert into float in javascriptjs parse decimaljavascript number to floatcast to float jsjs cast string to floatwho to convert string to float in javascriptto float in javascript 3fparse to float jsnode js convert string to floatjs parsefloajavascript text float inconvert string to double in javascripthow to parsefloat in javascriptconvert to float in jsstring too double in jsparsefloat javascript examplejs parsefloconvert a string to a float javascriptjquery string to floatstr to float in javascriptparsefloat 14string to float convertion nodejscast string to float javascripthow to convert string to float javascriptconvert string into float in javascripthow to convert float string to float in nodejsfloat programming jsdecimal string to number javascriptparsdouble jsparsefloat exampleparseint function in javascriptparsefloat 28 29 3fhow to parsefloatparsefloat and parseint in javascriptparse decimal javascriptjavascript float in argumentsnode parsefloatjavascript cast float to doubleparsefloat 10 rounded to 9 99from string to number javascript floatconvert string to number javascript using floathow to convert to a float jswhat does parseint do javascripthow can i covert string to float in jsparsefloat 28 29 in javascriptjavascript integer parse intparseintconvert string to floattypescriptconvert string to float node jsconvert char to float in node jsparse double jswhat does parsefloat do 3fjquery parsefloatparsefloat 10parse string to float jsjs parseinitjavascript parse to decimalconvert parsefloat in objectjavasscript parsefloatparseint javascript functionjquery string to decimalmath float javascriptconvert string to double in jscast to float in javascriptset value to float javascriptconvert a string to float in javascriptwhat is float in javscriptparsefloat val 28 29jquery html function parsefloat examplestring to float jajavascript function from string to floatto float javascritpparseint inverseparse int js why we use parsefloat in javascriptwhat is float in javascriptjavascript strign to floatconvert a string to double javascriptjs string to doublmejavacsipt parseintfloat parse jqueryparse to float in jqueryjavascript parsefloat from stringparsefloat in jsjavasctript parsefloatjavascript string value make floatfloat string javascriptstring to a float jsjavascript parse decimal from stringfloat javascriptjavascript htnl parsefloathow to convert a string into float in javascriptturn value into float javascriptparseint in jqueryconvert string into float jsjs conver string to floatwhen do i need parsefloat in javascriptjavascript convert float into symboljavascript convert tofloatparseint normal intmake a string to float in javascriptfloat value in jshow to convert string into float on javascriptnumber parseint in javascript w3 21parsefloat 28item 2c 10 29 29js parse string to floatparseval parseintjavascript parse string to floatjavascript pricefloatstring to float number in javascriptjquery floathow does integer parseint 28 29 workvalue as float tsjavascript to fliatconvert text to float in javascriptparsefloat javascrpitjs is float numberconvert to float javascriptmake string float jsjavascrypt string to floatparsefloat 28 29 of an stringjavascitp to doublejavascript 2bstring to floatcast string to float in jsext js 2b string to floatparse string to float javascriptfind the value of parsefloat 289 2b10 29 js cast floatjs make string floatparseint parsefloatjs float to floatparseint jqueryjavascript parse float stringparse floatconvert in float in javascriptjavascript floatparsejavascript parse floatconvert string to double javascriptparsefloat meaningjavascript cast to floathow does parseint work javascriptjs transform from sttinrg to floatconvert text to float32array jswhen i convert in float result is nan in javascriptjs cast to floattwhat does parsefloat returnsparse string to double in javascriptjs docstring floatstring float to float jsjavacsript convert string to floatconvert variable to float jsparsefloat with nodejsconverting string to float in javascriptjavascript string to float conversionconvert float javascriptsyntax of parseint in javascriptparse decimal jsparsedouble in javascriptjs float 28 29parseint formatconvert string float to float jsjs string to decimal numberhow to convert string value to float in javascriptconvert to double jsconvert javascript string to floatjavascript string parse floatparse float in javascriptconvertir un string en float javascriptconvert to double javascriptparseint and parsestringjs float numberparsefloat javascritpfunction parsefloat but return a number or null javascriptconvert to float jsfungsi parsefloatparse string to float in javascriptjavascript parsefloatconvert string character data to float in javascriptfloat value not taking in javascripytypecast a string in sloat in javascriptint parse javascriptinteger parseinthow to convert string to float on jsjavascript change string into floatjquery decimal parseparse double in javascriptconvert to float java scriptparse sring to float jsfloatval jsfunction strtofloat 28str 29 javascriptjavscript string to floatjavascript string to number with decimalstring to float number javascriptwhat parsefloat does in javascriptcast to float in jsstring convert to float javascriptjs estring to floatconvert str to float jsusing parsefloat 2b javascriptparse float doesnt calculate thousandparse to int javascriptreact parsefloat to numberparse to float javascriptconvert string to float jshow to convert the string to float in javascriptjavascript float from stringjavascript atring to floatparseint and parsefloat in javascriptconvert string number to float javascriptjavascript convetr to doublejs string to decimalparseint 28 29how to conver a string to float in jshow to convert string to floatin jsconvert number to float in javascriptstring tofloat javascriptallow string and parsefloat in javascriptparse string to double javascriptwhat does 10 mean in parsefloat in javascripti am getting a float number and i need to parse it in in in htmlparsefloat parametersjs code for make convert floatstring parsefloat javascriptturn string to float jsparsing a value to float in jsjs string to doublehow to convert float string to float number javascriptjs float parwhat is parseint and parsefloat in javascriptjavascrtipt parsefloatjavascript parse string as floati cant parseintfloat string to float javascriptjavascript turning string into floatget float input node jsjavascript float ofparsefloat 28 29 jsparse intconverting string to float javascripthow to convert float value to string in javascriptconvert to float in jqueryparseflot in jsjavascript float string to numberparsefloat 28 29 function javascript examplewhat parsefloat doeses6 string to floatjquery string parse floatjavascript str to floatconvert string to decimal in javascriptjs parse floatjs string to floatrnode js to floatnumber parsefloat 28 29parsefloat 28undefinded 29 jsjavascript parsefloat w3sparseint 28 29 in javascriptjavascript convert to soubleconvert string into float javascriptcast float javascriptto float javascriptparsefloat in javascripthtml convert to doublehow to make a string into a float in jshow to convert string float number to number in javascriptjavascript convert string to float numberconvert string a float jstype casting in javascript string to floatround numbers to specific precision parsefloat jsfunction in javascript to convert a float to whole numberjavascript parse as floatjavascript parsfloatjs float from stringconvert string to float in node jsjavascript give float 2csjavascript string to float numberhow to allow string in parsefloat javascriptto decials js floatparsefloat in jqparseint use in javascriptturn into float jsparse float 3 functionparsefloat function in jqueryjavascript to float functionfloat parsefloat returns 2c instead of js cast to doubleparseint ne demekjs text to floatjavascript convert to floating pointparse str to float jsjquery convert string to decimalformat string to double javascriptparsedecimal javascriptparsefloat javascriptfloat parsefloatjavascript convert str to floathow to convert a float string into a number jsjquery parsefloat to define functionconvert string into double in javascriptconvert string to float using number javascriptprseint jsparsefloat 28 29 functionfloat 28 29 javascriptparseint meaning javascriptpare float in javascripthow to use parsefloat in javascriptconvert string to float jshow to convert string t o float in jsparse decimal in jqueryjavascript convert string to doublewhat 27s parsefloat in javascriptnumber parsefloatparsing string to float in jsnode js string to doubleparse floar in jsparsefloat function in javascriptparsefloor jsconvert string to float using jqueryconvert jspinner to floatjavascript converting string to floatchange string into float jsjquery text 28 29 then parsefloatturn string into float javascriptstring to float in jswhat does parsefloat dotransform to float jsjavascript int parseconvert a float string to float number jsparsefloat reactjs string to number floatstring to float jshow to change string to float in javascriptparsefloat 28 29js parse to floatparsefloat 28 24 28this 29 val 28 29parsefloat en javascriptstring to double js 24 parsefloatjs int to floatjavascript convert to decimalstring to float with 2 decimal javascriptstring to float javscriptparse int javjavscript typecaser to floatjs parsefloatjquery parsefloat parsedoubleparse float 28 29parsefloat jav 27convert into float in jquerychange to float javascriptparsefloat 28value 2c 10 29how to use the parsefloat methodparse int node jsobject properties convert string to float if it is a number nodeparseint in javascriptconvert a string to float in jsparsefloat with signget float value in javascriptparsefloat of string nan false jsstring to parsefloat javascriptparse string to number with decimal javascriptjavascript get string to float1 9994448e 05 to float javascriptparsefloat numberfloat parsse jsconvert a string to float jshow to convert a string to a float in javascriptjquery parsefloat numberhow to parse float in javascriptjavascript declare floatparsfloat jsjavascript convert a string to a floathow to convert string to double in javascriptjs convert 1 1 string to float 271 2f2 27float parsejs convert floatparse double in jsparseint parsefloat javascriptjs parse odubleconvert string to float nodejsparsefloat 28 22 22 29 3bjavascript parseintconvert float in javascriptjquery parse string to floatparse float nil in javascriptconvert decimal in string javascriptparseflaot in jsparse javascriptwhat does parsefloat do in javascriptchange to float js how to parse float in jsparseint bunaryparse string as float javascripthow to use parseint in javascriptfloat conversion in javascriptjavascfript parseintque es parseintparsefloat is used forjavascript convert string to float latitudehow to convert string to float number in javascriptpars intjavascript string to floarfloat to string javascriptstring to parse float jsparsefloat jasparse 28intreturning a parsefloatconvert string to floating point number in javascriptconvert a string to float javascriptparsefloat functionswhat is parsefloatjavascript string float to numberconvert double in javascriptjavascript covert to doubleparsefloat nodejsget double float number from string javascriptparsefloat javascript with precisionwhat is parseint javascriptjs string to float with specific digitconvert string to float in angularjs in htmltransform from string to float in javascripttodouble javascriptparsefloat meanparseint 28xxx 2c 10 29 javascripttodecimal javascripttryparse javascript flaotstr to float jsstring to number float jsstring to float conversion jshow to convert int to float in javascriptstring to float javascrpitparsefloat javascript what is itjavascript convert text to floatstring with decimals to float javascripthow to fix nan error while using parsefloat 28 29 method in nodejsjavascript double parsejavacript convert string to floatchange string to float javascriptconvert js to floatjavscript convert string to floatparsefloat javascrfiptstring to int float jsvar parsefloatjavascript convert decimaljsvacript string to floatconvert to float javascriptparsefloat 3c 0javascript try convert string to float or intconvert string into float javscriptget float number from string javascriptjavascript parse int parsefloatjs float to stringjquery parsefloat trillionsjava script convert to floatjavascript tryparse decimalparsefloat in typescriptstrin to double in jsjavascript float caststring to float jqueryconvwert string to float jsparse string into float javascriptjavascript callback floatwhat is the meaning of integer parseintparsefloat javascript childrenparse float reactc 23 convert timespan to floatparseint javascriptjavascript parseint functionvar quantity 3d parseint 28quantity 2c 10 29 3bjs parse doubleconvert string to decimal javascriptjavascript cast string to doublestr to float in java scriptjs floatnodejs string to floatfloatval javascriptangular parsefloatnode js string to floatconvert in float in jsgetting long float values parsefloatjavascript try parse float else 0using parsefloat with varibale javascriptparsedecimal jsjavasctipt string to floatjs parseintconvert ascii string to float number javascriptjavascript parse float creates stringto convert float by adding before the value javascriptparsefloat stringhow to float text in javascriptparse float javascriptjavascript string to double decimalparse float in jqueryparsefloat 2cparse float in react templatejavascript get float from stringhow to conver to float jsstring to float javascriptparse string to decimal jqueryparseint javascript examplefloat jsjs negative number parseflaotconvert string to double pythonhow to convert string into float in javascriptparse string to float jsstring to decimal in jqueryusing parsefloat in javascriptparsefloat 28 29 javascript domconvertir string a punto flotante en jqueryparsefloat betekenisparser floatnode js to floatconvert a float to string javascriptjquery parsefloat centillionjavascript variable to floatparsefloat use in jsuse of parsefloat in jsto double jsstring to float convert 2b javascriptjquery convert number string to floatparse float from string javascriptconvert 0 01 to float in javascriptchange string to float in javascriptwhich to use number 28 29 or parsefloat 28 29 in javascripthow to change string to double javascriptparsefloat strict javascripttypecast float javascripthow to transform a string into a float jsjavascript string to doubleparseint equivalent stringparsedouble ecma 2020javascript floatif parsefloat 282 29covnert string to float javascriptcast string to float in javascriptjavascript parsefloat 28 29 3bjs parse flaothow to cast to float in java scriptparsefloat 28js convert int to floatconvert to double in javascriptconvert timestring to float javascriptjavvascript parsefloathow to use parsefloat in javascript while declaringjs typecast string to floatjavascript parse large number into doubleconverting decimal to floating point in javascripthow to convert in float in jsparsefloat 2834 29 3bwhat parseint in expressstring to double in javascriptcasting in javascript to floatconvert string into floatin javascripttypeerror 3a ctx r14 parsefloat is not a functionhow to convert number into float in javascriptjs convert to floatstring to float javasciprttjavascript tryparse floatparsefloat 28value 29transform stirng to float javascriptconvert to decimal javascriptjavascript cast floatfrom string to floatjavascriptparseint in java w3schoolsconvert string to number float javascriptjavascript array parsefloatparse float jsconvert string number to double javascripthow to parse a double in javascriptwhen to use parseint in javascriptparse float jqueryjs to doubleuse parsefloat in jsparsefloat javascrptparse in float in jqueryjavascript string to float converstion 5djquery parseflaotconverty in float jsaccept float values with javascriptdo i have to use parsefloat in javascriptparsefloat in jqueryconvert sting to float javascriptconvert var to float in javascriptparsefloat javascriptjs parsedecimalhow to convert tolocalestring into float in javascriptparsedouble htmlhow to cast to float in jsparsefloat mdnfloat number jqueryconvert parsefloat javascript if string or null comesjavascript convert to floatparsefloat to 3parsefloat 2810 2c 10 29parseint 28 123xyz 29 in javascriptparse int syntaxjs int parseparsefloat 10how to parse string to float in javascriptnodejs convert string to floatconvert string to float react nativenumber parsefloat 28parseint javascriptjquery parsefloat add valueparsefloat 28 29 javascriptget double from string javascriptmdn parsefloat18 00 in js string float js how to cast string to flaotjavascript convert to float numberparseint and parsefloat in jsjs parse realget double number from string jsconvert string to float in jsjquery parsefloat to define functiostring to float int javascriptparse string to float javascirptparsefloat parameterstring to float convert in javascriptjavascript conver string to floatjquery string to number with decimalparsefloat in javascript exampleparsefloat with intjavascript tofloatused to convert string or character into float type in jshow to convert into double in javascriptparse intin javascriptjavascript parsefloat functionhow to converst str in float jsjavascript string to float exception if lettersjquery parse floatparseint int prompthot to chage str to float js cast to float javascriptstr to float in jswhat does table float do in node jsjs floatvaljs parsefloat 28is parsefloat show stringjavascript sting to floatnodejs convers tring to floatextract float from string javascriptparse string in float javascriptparse float es6javascript parsefloat precisionparsefloat changes the value on conversionstring is a float jsparseint de destring to float js 5djavasctript cast string to floatparsefloat in formatted textfrom string to float jsjavascript parse intejavascript convert string to number floatstring to tfloat javasciript 5cjavascript parsedoublenode string to floatjavascript number and parsefloatparsefloat 28 22 22 29float value javascriptjavascript parse from string to floatparsefloat method in javascripthow to convert float string into number in javascriptto float jsjavascript cast string to floatparseflota javascriptjs convert str to floatparse float from string in javascriptmath parsefloat jsfloat in javascriptconvert to floatval in jswhy parsefloat is not decimalconvert to float in jastransform string to float jshow to turn a string into a float javascriptstring in decimal javascriptconvert string data to float in javascripttext to float javascriptget the string value to float javascriptjs convert to doubleparsefloat precisionjson parse floatparsefloat jqueryparsefloat javascript jquery tryparse floattofloat jsjquery decimal parseconvert time string to float javascriptdoes parsefloat work on integersparsedecomals in jsfloat in nodejsconvert number with decimal to float jsjquery parseintstring to float javscrioptconvert number to double javascriptparse string as float jshow to convert a string to a float jsstring to float number jsfloat value in javascriptdecimal parse javascriptparseint 28 22 2b639456789123 22 29string to double javascriptjavascript cast from string to floatjs cast value to floatparsefloat on stringparsing float in javascriptjava script string to float 24tofloat jsjs string to floattofloat in javascripthow to convert string into float in jsjs parse float negative returns nanconvert sting to float jsparsefloat 28 29 in javascript and javaparse to double jscast float jsistring to float jsconvert number to float jsstring to float2 javascriptparsefloat jsparseint npmget float from string javascriptstring to decimal in javascriptstring parsefloatdoes parsefloat return a stringconvert 2452 2c830 00 to double 2b jsparsefloat javascript convert but add as stringwhat does parsefloat mean in javascriptturn string to get float i in javascriptjavascrot to floatjs parse floarjavascript parsedecimalparseint jsuse of parsefloat in javascriptjavascritp floatjs cats string to floatjavascript to string to floatjquery to floatjavascript convert float string to floathow to cast to float javascriptjs to floatpasrse a string to float jsstr to float javascripthow to turn a string variable in a floatingpoint in javascriptparsefloat angularparsefloat 28x 29string to double in jsconverting string into float in jsnumber or parseintstring to float javascriptjs parseint radixcovert string to float in jsjquery parsefloat to define functionparse int javascriptvalue to float javascriiptjavascript parse to floatnumber parsefloatstring to numper float jsjavascript parsefloat 28 29 js change string to floatparsefloat angular templatejs stirng to floatjs parstfloatconvert into doube javascriptformat string to float javascriptinto float in jsjs to float numberconvert string to float in javascriptconert to float javascriptparse float to stringparse double javascriptonline parseintjavascript floatvaljs str to floatwhat does parseint do in javascriptturn to float jshow to convert string to float with 2 decimal in javascriptjavascript parese floatparse float return stringjs cast to floatjavascript function to convert string to floatjavascript cast to doubleconvert string to float javascriptparsefloat jquery w3schoolsjavascript string to floatjs convert tring to floatjavascrip convert var to doublehow do you convert numbers between different bases in javascript 3frequired to answer single choice 281 point 29 parseint parsefloat 1st two options none of themjavascipt string to floatjs parse 100 to float 1 00converting to float in javascriptwhat is parsefloat in javascriptparse double es6number turns to 1 when i parsefloat javascriptjavascript string to float 2 decimalsconvert to foloat javascriptcomvert string to flodt inn jsmeaning of parsefloatconvert a string to float js to 1 decimal placejs string int to floathow to convert a string into a floating number javascriptfloatint jshow to parse float from string jsjqeury parse floatjavascript to floatjs parse string as floatfloat parsefloat javascripthow to convert value in float in javascriptdouble parse javascriptparsefloat correct precisionparse string to double jsjs to 2c floatjs string to float numberfrom string to decimal or float javascriptparsedouble javascriptjavascript turn string into floatstring to float in javascriptjs convert 1 2f2 string to float from string to float javascripthow to pass decimal in string in javascriptstring to number float javascriptstring to number convert in javascript with floathow to convert string to float in jschange to float javasciptjavascript convert to doubleconvert decimal javascriptconvert string to float how to add 00 javascriptparseint in jsparsefloat 28data 29 3e parsefloat 28output 29how to make variable into a float in javascriptchange javascript to floatparsefloat js mdnparse floatparse to double javascriptstr to float nodejsjavascript parse as intcheck is float number javascriptparsefloat a long stringjavascript convert string into floatstring into float javascriptparsefloat h5 jqueryto float in jsjavascript string to float 2 decimaljs parse text to float numberjs parse str to floatparsefloat