Hi Jaydeep,
As per my experience, maxlength attribute for input type numbers is ignored. I tried to implement this behavior using other attributes such as max and min attributes, but unfortunately they doesn't stop the user from entering a value outside the specified range. Even using some other attributes, it wasn't resulting in the expected output.
So I managed to do it using some JavaScript code:
document.getElementById("Input_Number").addEventListener("input", function() {
Input_Number.value = Input_Number.value.slice(0, $parameters.MaxLength);
});
where Input_Number is the element that you pretend to limit and MaxLength your number of allowed digits.

Just place this JavaScript code in your screen / block OnReady event and it should work as expected.
Please refer to attached OML file with an example :)
Hope that this helps you!
Kind regards,
Rui Barradas