("$" + (15).toFixed( 2 ))
This would take the number 15 and return the string, "15.00", to which we would prepped the dollar sign.
String value did not work
As you can see, it only works on numeric values. Also, you will notice that it rounds to the given decimal place (or to the closest integer if given "0" as the number of digits to display).
Want to use code from this post? Check out the license.