• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Number Format Help

New Here ,
Oct 30, 2006 Oct 30, 2006

Copy link to clipboard

Copied

I can't seem to figure this out. I have numbers in the following formats:
5.00
5.76
6.894

I would like to format the numbers like this when they are displayed on the page:
5
5.76
6.894

Which function do i use? I tried number format and it keeps rounding the decimals. I feel like an idiot but i can't seem to get it to work.
TOPICS
Advanced techniques

Views

282

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 30, 2006 Oct 30, 2006

Copy link to clipboard

Copied

try #val(n)#

I'd have expected 5.00 to displays as 5 as a matter of course, so it's probably being treated as text...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 31, 2006 Oct 31, 2006

Copy link to clipboard

Copied

LATEST
treat each number as a period delimeted list. Use if/else logic with the listlast function.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation