Hello! There is a numeric field with a set minimum and maximum values and increments of 0.5. Please tell me how to round the entered values in accordance with the step.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="number" min="0" max="5" step="0.5" placeholder="1">