- Uscita PRIMA VERSIONE PiuCheBuono.app
This commit is contained in:
@@ -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 !
|
||||
|
||||
Reference in New Issue
Block a user