Jump to content

Number to text field conversion


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

Recommended Posts

I am trying to use a plugin to send email from filemaker. the plug in works fine but I am having trouble formating the body of the email the way I want it to look. Only text fields can be used in the body of the email but because it is an estimate I want to retain the $ and number formatting. Not losing the $ or trailing 0's.

Is there a calculation with a text result that will take a number field and have the correct formatting when finished. ie. $4,879.79

Thanks,

Wayne

Link to comment
Share on other sites

Hi Wayne,

Assuming your values are below 999,999.99 the function below should work, if you need it to work for larger numbers you can add some more 'if' steps to allow for you maximum number:

"$" &

If([YourNumField] >= 1000,

Int([YourNumField]/1000) & "," & Round([YourNumField] - Int([YourNumField]/1000)*1000, 2),

Round([YourNumField],2))

Andries

Link to comment
Share on other sites

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