java truncar decimales code example Example: truncar a 2 decimales java Math.floor(value * 100) / 100;