Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Truncating an integer


Eunmi66

This topic is 8597 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm attempting to truncate a 10 digit integer(located in a text field as text) by stripping off the last 5 numbers which are always Zeros. Ultimate goal is to make it a 5 digit integer (without the zeros).

Can someone point me in the correct direction.

Respectfully,

Eun Mi

Link to comment
Share on other sites

quote:

Originally posted by Eunmi66:

I'm attempting to truncate a 10 digit integer(located in a text field as text) by stripping off the last 5 numbers which are always Zeros. Ultimate goal is to make it a 5 digit integer (without the zeros).

Left ( IntegerTextField, Length ( IntegerTextField) - 5 )

This will give you the text without the last 5 characters.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

Link to comment
Share on other sites

Jeremy, Capt, Dan

Thanks to each of you for the input. I used the Capt's script step and it worked super.

Dan, yours also worked and I took your advise and filed it for future reference.

Jeremy, The zeros sometimes appear consecutively in another location in the integer, so I was unable to use your suggestion.

Greatfully

Eun Mi

Link to comment
Share on other sites

This topic is 8597 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.