i don't think we need this functional, so I use both checks :
Number(number) && parseFloat(number)