Trimming characters from numbers

pl456

Registered User.
Local time
Today, 17:20
Joined
Jan 31, 2008
Messages
150
How can I remove the pound and the millions from £2.5m to leave me with 2.5

Can't see how its done with, what I know of left, right, mid they woudln't acheive it as they are not always in the same position for example the £2.5m could be £2m or £10.5m.
 
For the record, you could have used the Mid() function along with the Len function to find the overall length (Len(..) - 2 I think it would be)
 
Or simply

Val([YourFieldName])
 
Will Val() work with a leading non-numeric character? In a brief test, it did not:

?val("$123m")
0
 

Users who are viewing this thread

Back
Top Bottom