How to format a Float value with decimalpont comma “,” in stead of period “.”?

while saving a “.csv” file in HTML document, floats are written with “.” period.
I want to have floats written with “,” as decimal point and column separtor as “;”.
The reason is that the norwegian format for number, is “,” in float numbers.

I tried a lot of solutions as searches on web.
Help files for javascrpt and so on.