You need to query the value from the floatField and then pass that value into your loop procedure. A couple of things to get you going in the right direction:
Querying the floatField's value and assigning it to a variable:
Code:
$frame = `floatfield -q -value fieldName`
Using the value in your loop procedure:
Code:
myShaveWriteProcedure($frame);
And declaring the procedure:
Code:
global proc myShaveWrite{$frame)()
{
using $frame somehow...;
}
This might not be super accurate, but this, along with the MEL help files, should get you going in the right direction.