Thanks for that rojohound
The example i gave was from a circuit ID in work where we drop the "W" to come up with the decimal.
Im trying to get your code working via events. Im sure its easier via JS but im unable to trigger/display the results in a text box that way (cant do JS :D )
Il keep messing around with it.
Thanks Rojo, always helpful!