Jump to content
Server Maintenance This Week. ×

Numeric Formatting


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

Recommended Posts

  • Newbies

Has anyone figured out a way to get numeric formatting with CDML.

For example, a numeric field for currency in FileMaker is formatted to display as "$1,234.50". CDML displays it as "1234.5".

I know I can simply put the "$" in HTML, but I haven't found a simple way to get the two decimal places to display correctly.

[This message has been edited by REdSta (edited May 30, 2000).]

Link to comment
Share on other sites

Yes. "Database publishing with FileMaker Pro on the Web" by Maria Langer (Peachpit Press) discusses preparing one's db to allow display of the decimal rounded and the $-sign inserted, though there is an error in her calculation algorithm. Following "...If(Round(Unit Price, 2)..." she uses ">", which will keep the "1" from appearing if the amount is "1,000". To fix this use "*" (Macintosh). I'm not sure, but I think with Windows you would use ">=" or "=>", but if you are a Windows user, you will know.

Hope you find this useful.

Peace

Keith M. Davie

Link to comment
Share on other sites

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