>Hi, i need some help with this.
>
>i don't know how to do this.
>
>number i got ej."1,260.05"
>i want to convert the "string" to a number
>whenever i do val("1,260.05") but the result is 1.00 not 1,260.05
Eliminate the comma first. strtran() will do the "search and replace" operation (see also chrtran()).
? val(strtran("1,260.05", ",", ""))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)