Decimal Rounding Script

Enter a value with decimal places at the end of it
Enter desired number of digits right of the decimal
The correct rounded value is