// but answer becomes a string (not usable number) number.toFixed(2) // I don't know what parseFloat is - but this was the original answer i received, need to learn why its different than above parseFloat(portfolioValue * props.data.current_price).toFixed(2);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter