export function input1_input(event) {
let input= $w("#input1").value;
input = parseFloat(input);
let output = input * 2;
output = parseFloat(ausgabe).toFixed(4);
$w("#input2").value = ausgabe;
}
I have 2 input fields (text) and do a calculation (see code). Can I do the same, but input and output with german number format (e.g. 1.000,25) ?
Thank you
Walter
First, it's not clear why you need this parseFloat.
Second, you can make it a string that uses the German format . For example
let num = 5 / 10; let formatted = num.toLocaleString('de-GE')); console.log(formatted); // logs "0,5"