Here's how I did it:
1) Field: type : Numeric Field, Display Pattern Z,ZZ9.99, no edit pattern;
2) Value: Calculated - Read Only
3) Binding: Normal, no data pattern, Data Format: Decimal
4) Add the following FormCalc script to object's calculate event:
if (quantity == 0 or quantity == Null) then
(Null)
else
(quantity * cost)
endif
// where quantity is the number of items ordered, and
// where cost is the unit cost of the item.