- Uscita PRIMA VERSIONE PiuCheBuono.app

This commit is contained in:
Surya Paolo
2023-12-30 21:34:09 +01:00
parent 632d05bbfb
commit a32ba4ec7a
16 changed files with 341 additions and 201 deletions

View File

@@ -8274,7 +8274,8 @@ export const tools = {
},
convertPriceEurToValue(inputString: string): string {
if (inputString === '')
return '0';
// Rimuovi il simbolo della valuta (€) e sostituisci la virgola con un punto
return inputString.replace(/[^\d.,]/g, '').replace(',', '.');
},
@@ -8316,6 +8317,13 @@ export const tools = {
return (`${strgg} ${this.pad(hours)}:${this.pad(minutes)}:${this.pad(seconds)}`);
},
calcperc(val1: number, valmax: number): number {
if (valmax > 0)
return (val1 / valmax * 100)
else
return 0
}
// FINE !