Math.Ceiling method to return floats instead of integers

Is there any method to perform Math Ceiling to a float number and it should return a float to a specified number. The default node for ceiling in dynamo gives output as an integer.

Example: If I have a value of 1.36, then it should return a value of 1.50 with 0.25 specified value. And If it’s 1.23, then it should return 1.00

The default node will return 2 int in both the cases.

This code block can help


Excellent Solution! @AmolShah

1 Like

Amazingly solved. Thanks @AmolShah

1 Like