Click or drag to resize

UtilityCreateFormat Method

Defines how codes are formatted before being output to the NC file.

Namespace: Woodwork.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
Syntax
Format CreateFormat(
	Object formatDescriptor
)

Parameters

formatDescriptor  Object
Object define how to Format value.

Return Value

Format
The Format object define by formatDescriptor.

JavaScript
// How to use CreateFormat
var myFormat = Utility.CreateFormat({decimals:3, trim:false, forceSign:true});
myFormat.Output(4.5); // returns "+4.500"

See Also