Good morning. My question is quite simple, I show it with this example:
$('#resultado').append($('<p>').html(13.135345 | 0));
$('#resultado').append($('<p>').html(122.333 | 0));
$('#resultado').append($('<p>').html(56.43 | 0));
$('#resultado').append($('<p>').html(NaN | 0));
$('#resultado').append($('<p>').html('1233.5555' | 0));
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<section>
<p>Ejemplo de truncamiento con operador O binario</p>
<section>
<section id="resultado"></section>
Why when using the operator | in decimal numbers do you truncate them? I saw this in the following SO question in