I replicated the JavaScript Math library for autocalc functions on character sheets. Many of those calculations can be used in rolls as well, although any calculation which has to reference the same value more than one can't be used if your "value" is the result of a dice roll. (That said, rolls have access to some things autocalc fields don't. For example, max(x, y) requires referencing x and y once each which you couldn't use to get the max of two dice rolls, but rolls give you access to keep-high and keep-low which produce the same results as min and max, respectively. Autocalc fields cannot replicate random(), but dice rolls are random.) sign(x), trunc(x), and atan2(y, x) don't work for x=0 Of course, thanks to sheet worker scripts, that work isn't really necessary any more, but it's still there and may prove useful. =)