max(aScale, bScale).alignScales
fn
long[2] alignScales(long a, ubyte aScale, long b, ubyte bScale) @safeAligns two coefficients to a common scale (the max), returning the aligned pair. The one with the smaller scale is scaled up.
Parameters
a | the left coefficient |
aScale | the left scale |
b | the right coefficient |
bScale | the right scale |
Returns
the aligned coefficients at
Throws
DataFrameException on overflow during alignment.