Store rounded values as a variable

Is there any way to store rounded value as a variable.Suppose my bridge is X m long and has span length of approx Y m so i want to store value of no of spans (which will be a integar value).

This should do the trick for a max span length.

Let#L_span_org 5
Let#L_total 21
Let#L_ratio #L_total/#L_span_org

Let#n_span div(#L_ratio)+Iif(mod(#L_ratio),1,0) $ Skip the +Iif(...) part if you want span length rounded up
Let#L_span #L_total/#n_span
prt#n_span
prt#L_span

Thank you SFR for quick reply.