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

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

Recommended Posts

  • Newbies
Posted

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

Posted

Hi Ken,

Try this

Int (Round (NumberField , 2)) & "." & Right (Round (NumberField ,2) * 100,2)

HTH

Lee

  • Newbies
Posted

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

Posted

Right( "        " & Int(Round(NumberField , 2)) & "." & Right(Round(NumberField ,2) * 100,2), 11 )  

There are 8 spaces in that, btw.

This topic is 7525 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.