get 1st float ( or int ) from given string


/ Published in: JavaScript
Save to your folder(s)

it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) )

then u can parse returned value as a number / float / int - do what You need with it ;-)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.