Dimitri De Franciscis

Hi, my name is Dimitri De Franciscis

I'm a freelance Full Stack Developer, Digital Creative, Lifelong Learner.


Articles tagged with "tips"

BigDecimal and rounding modes

After seeing the great success of introductory article on BigDecimal class I wanted to go on with some examples on one of the most complex operations: division. The problem... Is always the same: length :) BigDecimal, as already seen, can have an arbitrary number of decimal digits: this does not mean …

› Read more

Tue 04 August 2009

Impossible Math

Can we trust computers calculations? IEEE 754 specification is the standard used for floating-point calculations in the engineering and scientific fields. In my humble opinion it is a perfect example of how computer industry and software development are based on a fundamental illusion of mankind: the possibility to attain and …

› Read more

Tue 03 February 2009

BigDecimal

java.math.BigDecimal class represents “Immutable, arbitrary-precision signed decimal numbers” (with some limits), and has methods to operate on those numbers. Its use although is not so immediate and it is easy to do errors. In this article I'll try to put some light on this topic, in the hope …

› Read more

Tue 03 February 2009

Calcoli Impossibili

È possibile dubitare dei calcoli di un computer ? Un'introduzione La specifica IEEE 754 rappresenta lo standard per il calcolo in virgola mobile, cioè quello usato per i calcoli di tipo scientifico e ingegneristico; a mio parere è un'ottimo esempio di come l'industria informatica e lo sviluppo di software sia basato …

› Read more

Wed 03 December 2008

BigDecimal e metodi di arrotondamento

Visto il grande successo dell'articolo introduttivo sulla classe BigDecimal ho deciso di proseguire la serie con qualche esempio su una delle operazioni più complesse: la divisione. Il problema... ...è il solito: le dimensioni :) BigDecimal, abbiamo detto, può avere un numero arbitrario di cifre decimali: arbitrario si, ma non infinito …

› Read more

Fri 14 November 2008

Bigdecimal (Ita)

La classe BigDecimal consente di utilizzare numeri a precisione decimale "arbitraria" (vedremo poi i limiti di questa definizione) e di eseguire calcoli aritmetici su di essi. Il suo utilizzo tuttavia non è immediato ed è facile commettere errori. In questo articolo si cercherà di fare un po' di chiarezza sull'argomento …

› Read more

Fri 14 November 2008