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

I imported a CSV and the trailing zero is missing

Community Beginner ,
Oct 16, 2022 Oct 16, 2022

Copy link to clipboard

Copied

I display a lot of pricing data on my youtube channel. And I recently discovered that you can import a CSV of data and it will change the text boxes based on that data supplied. 

The issue that I'm running into is that the prices are missing trailing zeros. 

For example 237.50 will be imported as 237.5 and there is no way to just add that zero. 

How can I make sure that that trailing zero is present ?

I had tried to use the toFixed() expression but it's telling me that it's not a valid function (I'm guessing this is because the source text is coming from the CSV.) 

 

TOPICS
Expressions

Views

122

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

correct answers 1 Correct answer

Community Expert , Oct 16, 2022 Oct 16, 2022

You might have to do:

parseFloat(link_to_your_number).toFixed(2)

Votes

Translate

Translate
Community Expert ,
Oct 16, 2022 Oct 16, 2022

Copy link to clipboard

Copied

You might have to do:

parseFloat(link_to_your_number).toFixed(2)

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
Community Beginner ,
Oct 18, 2022 Oct 18, 2022

Copy link to clipboard

Copied

LATEST

Much appreciated! thank you

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