Returns an SVG compatible string for the number in the specified unit.
The number is assumed to already be in the specified unit. The unit parameter is for the string to append after the number, e.g., 'in' or 'cm'.
Namespace: RSSVGUtils
Delphi |
function SVGNumberToString( const N: Single; const aUnit: TSVGUnit; |
Parameters
N
Type: Single
Number to convert to string
aUnit
Type: TSVGUnit
Measurement unit the number is in
FormatStr
Type: String
Format string for the number
Type: String
Reference |