Number format

Hello guys!

Is there a way to give numbers a format as described in the image?

  • Use “.” as thousands separator
  • Use “,” as decimal separator
  • With two decimals

Thanks :slight_smile:

HI Cristian
Is this what you need?


NumberFormat.gh (8.3 KB)

1 Like

Except decimal and thousand separator are the wrong way around (:

Thanks man!

it´s almost there. I´m using R5, and it pops up this message:

yes! indeed

This is the file of Rhino5
NumberFormat_Rhino5.gh (5.2 KB)

1 Like

Thank you so, so much!!! :smiling_face_with_three_hearts:

I took it from your file and added a couple things to achieve what i needed. I post it here in case anyone may found it useful:

An observation: the output is no longer a number. It´s a string of characters.