Tyra Posted June 3, 2008 Posted June 3, 2008 This is probably an easy one, but is giving me fits. I can get it done using a long series of subs etc., but there has to be an easier cleaner way of doing it. Floor(Random*587)+1 which of course will produce anumber like 45,4. and need it to show 045,004. Need it to always pad it with 0's.
comment Posted June 3, 2008 Posted June 3, 2008 Floor(Random*587)+1 which of course will produce anumber like 45,4 Huh? Floor(Random*587)+1 will of course ALWAYS return a single integer number. I am not sure what the comma in your example is representing, but your formula will NEVER return a result like that. To pad a number with leading zeros, you can use: SerialIncrement ( "000000" ; number ) The result should be Text.
Tyra Posted June 3, 2008 Author Posted June 3, 2008 Comment thanks, sorry for the confusion was working with no sleep. The numbers were just meant be be separate examples, not what would be produced together, my bad for not making it clearer. SerialIncrement ( "000" ; Floor(Random*587)+1 ) works perfect for what I am trying to accomplish. Thank you again.
Recommended Posts
This topic is 6077 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