Qui di seguito un esempio di come formattare il numero decimal di tipo "27,8674" in "27,87".
var risultato = Oggetto.Proprieta.ToString("0.##")
Programmazione .Net, Asp.Net, Compact Framework, MAUI, Sql Server, Filenet e tanto altro materiale informatico.
Nessun commento:
Posta un commento