macmangler Posted July 10, 2006 Posted July 10, 2006 What is the best way to remove a decimal...such as 8.5 return "85" or 17.75 returns "1775." I started using "Left" and "Right" and "Patterncount" and such, but do not have the best knack for this stuff. So if anyone has a few minutes.... much appreciated. Mike
macmangler Posted July 10, 2006 Author Posted July 10, 2006 :) ) I knew there was a better way! Thanks!
LaRetta Posted July 11, 2006 Posted July 11, 2006 You might want to include a minus in the filter options if you have any negative numbers. It also feels weird applying text calculation to a number to turn it from a true number into a text string which changes the meaning of the number. But I'd probably do it this way: Substitute ( numField ; "." ; "" ) ... which still bothers me because it changes the MEANING of that number. But oh well ... I can be overly fussy and anal at times. :crazy2:
Razumovsky Posted July 11, 2006 Posted July 11, 2006 It also feels weird applying text calculation to a number to turn it from a true number into a text string which changes the meaning of the number. Yeah, I had a similar feeling. I got over it by thinking that it is not really being considered as a number in the first place, but text all the way -kind of like: Cat.Dog to CatDog. What is it for, Mike?
macmangler Posted July 12, 2006 Author Posted July 12, 2006 HI.. It is for coding.... as a printer a page size might be 8.5 x 11... the code should be 8511 and then a series of codes to define paper. Essentially for inventory and work orders. I could see how you might wonder why I would want to strip a decimal out of a number. Mike
Recommended Posts
This topic is 6709 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 accountSign in
Already have an account? Sign in here.
Sign In Now