-3

I would like to convert float value 2.0 into 2.00 in the output. How can i achieve the same in bigquery?

e.g. I have value 6412.7 as an input. I would like to have output like 6412.70.

James Z
  • 12,209
  • 10
  • 24
  • 44
Nidhi
  • 1
  • 2
  • I'm not aware of anything called BigSQL in GCP, in addition SO is not a free consultant/coding service. Show what you've tried or investigated. – Puteri Jan 07 '22 at 17:32
  • Please improve your questions following: https://stackoverflow.com/help/how-to-ask – Antonio Ramirez Jan 07 '22 at 17:48

1 Answers1

0

SELECT CAST(1200.555 AS STRING FORMAT '999,999.99') as a;

guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76