Creates a Unit instance with the specified value and UnitType.Percent.
Namespace: MindFusion.Common
File: Unit.js
JavaScript Copy Code |
---|
function percentage (value) |
Number. The value of the unit.
Unit. The new Unit.
The following code uses the UnitType enumeration to check the type of a Unit value:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var unit = new m.Unit(); if(unit.type == m.UnitType.Percent) |