The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] Formatting numbers via CSS in HTML tables
MacPhotoBiker
Member Posts: 60 Contributor II
Hi,
I'm creating an HTML table in RapidAnalytics and show it in a WordPress web page, in terms of data all works well.
I'd like to format the numbers in the table in order to make them more readable, for example instead of 50000.00 I'd like to show 50,000.
I know I can use CSS stylesheets, but as far as I figured out, CSS does not allow to do number formatting, all I found was basically "Yes, number formatting SHOULD be possible, but it's not."
Could somebody help me out how to achieve the following formats within an HTML table created by RapidAnalytics:
50000.00 -> 50,000 (or $50,000)
0.034 -> 3.4 %
Thanks a lot!
I'm creating an HTML table in RapidAnalytics and show it in a WordPress web page, in terms of data all works well.
I'd like to format the numbers in the table in order to make them more readable, for example instead of 50000.00 I'd like to show 50,000.
I know I can use CSS stylesheets, but as far as I figured out, CSS does not allow to do number formatting, all I found was basically "Yes, number formatting SHOULD be possible, but it's not."
Could somebody help me out how to achieve the following formats within an HTML table created by RapidAnalytics:
50000.00 -> 50,000 (or $50,000)
0.034 -> 3.4 %
Thanks a lot!
Tagged:
0
Answers
An even better choice is probably the Format Numbers operator.
Best regards,
Marius
thank you very much, the "Format Number" operator perfectly does what I was looking for, and I wasn't even aware of its existence. Much appreciated!