function mit2NKStellen(x) {
	k = (Math.round(x * 100) / 100).toString();
	k += (k.indexOf('.') == -1)? '.00' : '00';
	if (x < 0) return k.substring(0, k.indexOf('.') + 3); else return '+' + k.substring(0, k.indexOf('.') + 3);
}
function mit10NKStellen(x) {
	var k, vorzeichen, kIndexOfPunkt, mod, modPlus3, vorkomma, formatiertVorkomma, nachkomma, positionDesBuchstaben_e;
	if (x < 0) {
		vorzeichen = '-';
		 x = Math.abs(x);
	} else {
		vorzeichen = '+';
	}
	if (x.toString().indexOf('e') == -1) {
		k = (Math.round(x * 10000000000) / 10000000000).toString();
		k += (k.indexOf('.') == -1)? '.0000000000' : '000000000';
	} else {
		positionDesBuchstaben_e = x.toString().indexOf('e');
		var eZahl = parseInt(x.toString().substring(positionDesBuchstaben_e + 2));
		var zehnerPotenz = Math.pow(10, (10 - eZahl));
		var ziffernNachRechts = Math.round(parseFloat(x.toString().slice(0, positionDesBuchstaben_e + 1)) * zehnerPotenz).toString();
		k = '0.000000000'.slice(0, 12 - ziffernNachRechts.length) + ziffernNachRechts;
	}
	if (k == .0) return ' ' + k;
	kIndexOfPunkt = k.indexOf('.');
	if (kIndexOfPunkt > 2) {
		vorkomma = k.substring(0, kIndexOfPunkt);
		mod = (kIndexOfPunkt % 3 == 0)? 3 : kIndexOfPunkt % 3;
		formatiertVorkomma = vorkomma.substring(0, mod);
		if (mod < kIndexOfPunkt) {
			modPlus3 = mod;
			while (mod < kIndexOfPunkt) {
				modPlus3 += 3;
				formatiertVorkomma += '.' + vorkomma.substring(mod, modPlus3);
				mod = modPlus3;
			}
		}
		return vorzeichen + formatiertVorkomma + ',' + k.substring(kIndexOfPunkt + 1, kIndexOfPunkt + 11);
	}
	return vorzeichen + k.substring(0, kIndexOfPunkt) + ',' + k.substring(kIndexOfPunkt + 1, kIndexOfPunkt + 11);
}