Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<html><head><title>Untitled-1</title>
<script type="text/javascript"><!--
function decdiv(nbr) {
if (isNaN(nbr) ) {
return 'NaN';
} else {
nbr = String(Number(nbr));
beforedec = (nbr.indexOf('.') == -1)
? nbr
: nbr.substring(0,nbr.indexOf('.'));
afterdec = (nbr.indexOf('.') == -1)
? ''
: '.' + nbr.substring(nbr.indexOf('.')+1,nbr.length);
beforedec =
beforedec.substring(0,beforedec.length%3) +
beforedec.substring(beforedec.length%3,beforedec.length).replace(/(...)/g,',$1');
return (beforedec + afterdec).replace(/^,/,'');
}
}
//--></script>
</head><body>
<input type="text" id="ich" />
<input type="button" value="Go!" onClick="alert(decdiv(document.getElementById('ich').value))" />
</body></html>
<script type="text/javascript">
<!--
function funktion(zahl)
{
while(zahl.match(/^(\d+)(\d{3}\b)/))
{
zahl=zahl.replace(/^(\d+)(\d{3}\b)/,RegExp.$1+'.'+RegExp.$2);
}
return(zahl);
}
//-->
</script>