How to Localize My Executable Decimal Separator

Updated Nov 14, 2023



  • LabVIEW

When computers use a different language may use different decimal separators. There is an option in the LabVIEW programming environment to decide whether to use localized decimal points. However, when building an executable, this LabVIEW programming environment setting is not inherent in the application. This article will explain the steps to setting up the executable so that it will not use localized decimal points.

At present there is no straightforward way to do this except by modifying the .ini file that is created when the executable is run. When you are in the LabVIEW development environment, you are able to turn off the "Use Localized Decimal Point" option. However, when you build an executable, you will need to update this option on the .ini of the executable so that the executable uses the same options. The steps to do this are listed below. 
  1. Once you create your application (eg: Application.exe), run it once. This will create a *.ini (Application.ini) file in the same directory of the build.
  2. Open this .ini file, and you should notice the first line is the application name [Application]. Below this, enter the following token:
This application should then use (.) as the default separator, like in your English systems.
  1. Go back to your project and add the *.ini (Application.ini) file to your project. Open your properties for your executable. 
  2. On the Advanced Category, check Use custom configuration file and select the *.ini (Application.ini) file that you have edited.
  1. Build the executable again.
You should now notice that this newly built executable works the same as it would work in the LabVIEW development environment.