This content has been marked as final. Show 4 replies
you can use the string methods to strip the units and then the Number function to convert the resulting substring to a number.
In addition to what kglad said - using parseInt or parseFloat is more
reliable than using Number.
Adobe Community Expert
thanks for all the help!
check dm's message. i'm not sure above those functions being more reliable than Number(), but using parseFloat() would not require stripping the units.