Different decimal seperator in Versions (2024,2025,2026)

I have noticed that the String from Object node uses a comma instead of a dot since version 2025. My Region settings and keyboard layout are both in German (Switzerland) so the decimal separator is a dot.

Is there a setting to change the decimal point?

Thank you in advance and best regards

Flurin

Hi @f.furger maybe string replace node could work

This works without any problems, but the problem is that a customer of mine (with the same installation) gets a point. And so we can’t work with the same scripts without querying all values. So it would be interesting to know where the setting comes from.

I believe the settings are based on the language configuration which Dynamo is launched with, but I haven’t tried altering the configuration yet.

Is this in Dynamo sandbox, Dynamo for Civil 3D, Dynamo for Revit, or another integration?

Seems to be the language setting.

With language set to Espanol:

With Language set to English:

There are options here:

  • Always use a String.Replace to always swap from format 2 to format 1 - if it’s already in format 1 you’ll just get what you had before
  • Use a controlled formatting method - modern Dynamo builds have some good tooling for this
  • Set your system to the same configuration as your customer
  • Write out to an external file which uses a consistent formatting method (i.e. CSV, excel)
  • Don’t convert numbers to strings - they’re more valuable in the raw format anyway.

Unless also thousands seperators are forced too, which are points if the decimal seperator is a comma.

I don’t believe that Dynamo will convert with a thousands separator - have you seen it do so?

I can’t prove it. Currently, all Civil 3D Dynamo versions converts numbers to a decimal point:

Which I also want it to be, even while I have country settings set to a comma:

AutoCAD always use a point, survey data uses a point, so everything works better if no commas are used. Probably I can set it to a point, but then I am not sure if clients can use my graphs or my applications if other conversions happen.

Because I am pretty sure I’ve seen also other results, that a comma is used in the output. But does that happen after a while and some other app has changed country settings or AutoCAD settings internally? I don’t know.

I’ve seen screenshots of the Photo Exif data node from my package, and where I clearly see a point in my graph, the client sees a comma. My computer is set to Dutch notation (a comma), his computer was set to Fench (also a comma). I’ve tried everything in the code to prevent the comma used, but nothing worked. I still don’t have a clue why I see a point, in contrast to my country settings and someone else sees a comma, according to his country settings.

It is absolutely not clear what Dynamo does, nor if it is Dynamo that does these weird things. But if Dynamo shows a comma, while a point should be expected (why doesn’t the Code Block use a comma but only in the conversion to a string), I would’t blindy trust that thousands seperators are not applied :slight_smile:

There was a thread the other day asking for thousands separators the other day and the solution was “manipulate the strings” which wasn’t easy… Glad I didn’t steer them wrong.

Dynamo for Civil 3D will use a comma or a decimal point depending on your language setting. Guessing you’re using English? Try Spanish and you should get this:

Language is changed in Dynamo’s preferences, and requires restarting Dynamo (but not Civil 3D).

Ah, thát language setting :smiley: I thought Windows regional settings…

With Spanish, the default is a comma now (no thousands seperator). The node from The Civil Nodes keeps using a point in the conversion.

:thinking:
Does the method in the Civil Nodes use culture neutral conversion?

No, it is forced to use en-US with dot notation, because commas can cause unexpected problems. AutoCAD also uses a point, in fact everything here in NL except Excel.

But maybe it is a good idea to add a few optional input ports for the culture.

1 Like

Good Morning Jacob

All right, now it makes sense. Then I will work with the English version of Dynamo! Thank you for your quick reply!

1 Like

Or you can use The Civil Nodes package :wink:

or that of course! Many thanks to you too! :blush:

1 Like