Newbies KenK Posted April 16, 2004 Newbies Posted April 16, 2004 I need to convert a number to a text string that is appended to a text file. If I convert the number 9.12 it comes out as the correct number 9.12 If I convert the number 9.00 it comes out as 9 when in fact I need the number 9.00 Can you help me with this? Thanks FileMaker Version: 6 Platform: Windows 95/98
Lee Smith Posted April 16, 2004 Posted April 16, 2004 Hi Ken, Try this Int (Round (NumberField , 2)) & "." & Right (Round (NumberField ,2) * 100,2) HTH Lee
Newbies KenK Posted April 16, 2004 Author Newbies Posted April 16, 2004 Thanks so much Lee. It works like a charm. I have one more question. If the text format is supposed to have 11 characters for the output number then how do I get the proper number of spaces in the output to balance this out? Eg. if the number is 123.45 I need the output to be -----123.45 where - is a blank. Or if the number is 123456.78 I need the output to be --123456.78. Thanks again. Ken
-Queue- Posted April 16, 2004 Posted April 16, 2004 Right( " " & Int(Round(NumberField , 2)) & "." & Right(Round(NumberField ,2) * 100,2), 11 ) There are 8 spaces in that, btw.
Recommended Posts
This topic is 7787 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