Possible with a bit of string manipulation.

n is the original number, nScaled is the original number * 100 and rounded (so we can ignore everything after the decimal place), and s is the string we will manipulate from nScaled.

`// get the value we want`

n = thisComp.layer("shape").transform.rotation.value;

// add two zeros

nScaled = Math.round(n * 100);

// make it an unsigned string -- we'll add the negative back later if it's supposed to be negative

s = "" + Math.abs(nScaled.toString());

// pad low values with leading zeros to ensure at least 3 digits after we move the decimal point

while (s.length < 3)

{

if (n<0) s = "" + nScaled.toString();

s = "0" + s;

}

// if it was negative, add the - sign back

if (n<0) s = "-" + s

// insert the decimal place before the last two decimal places

s = s.substr(0,s.length-2) + "." + s.substr(s.length-2,s.length)

Walter Soyka

Principal & Designer at

Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting

RenderBreak Blog - What I'm thinking when my workstation's thinking

Creative Cow Forum Host: Live & Stage Events