Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove the last digit?
#2
It's not elegant, but you could do
Macro Macro2
Code:
Copy      Help
str number="55000"
str s
if s.right(number 3) = "000"
,int NumberLength = number.len - 3
,out s.left(number NumberLength)


Messages In This Thread
How to remove the last digit? - by BK - 08-15-2018, 11:44 AM
RE: How to remove the last digit? - by TheDane - 08-15-2018, 12:01 PM
RE: How to remove the last digit? - by BK - 08-15-2018, 01:20 PM
RE: How to remove the last digit? - by Kevin - 08-15-2018, 06:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)