Arrotondare un numero

Operazione abbastanza semplice, o almeno sembra...

Mi è capitato di scrivere un programma che genera dei documenti in formato PDF, e la cosa che mi ha dato più problemi è stata arrotondare le valute a due cifre decimali. Non l'avrei mai detto...

Ho trovato però dei link interessanti sull'argomento:

Binary floating point and .NET

Decimal floating point in .NET

How to Implement Custom Rounding Procedures

Print | posted on domenica 5 marzo 2006 22.25

Comments have been closed on this topic.