export text with comma

Questions about MultiCharts and user contributed studies.
waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

export text with comma

Postby waldem » 11 Oct 2021

Hallo team, the function:

Code: Select all

TradeStr2="Perf%="+NumToStr(PercGain,1)+NewLine; FileAppend(FName3, TradeStr2);
export to me the number with point ".", instead that with comma ",".

I read that NumToStr() uses a point as the decimal separator (1.44530) or a comma (1,44530) depending from the regional settings of your Windows version.

Dut on my PC i already have comma set for numbers as we use in Europe.
There are some other settings to do?
thank you for your help

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: export text with comma

Postby Tammy MultiCharts » 12 Oct 2021

Hello waldem,

A point (".") is always used as the decimal separator in PowerLanguage.
This does not depend on the regional settings.


Return to “MultiCharts”