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