Click or drag to resize
UtilDegreesToHMS Method (Double, String, String, String, Int32)
Convert degrees to sexagesimal hours, minutes, and seconds with the specified number of second decimal places

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public string DegreesToHMS(
	double Degrees,
	string HrsDelim,
	string MinDelim,
	string SecDelim,
	int SecDecimalDigits
)

Parameters

Degrees
Type: SystemDouble
The degrees value to convert
HrsDelim
Type: SystemString
The delimiter string separating hours and minutes
MinDelim
Type: SystemString
The delimiter string separating minutes and seconds
SecDelim
Type: SystemString
The delimiter string to append to the seconds part
SecDecimalDigits
Type: SystemInt32
The number of digits after the decimal point on the seconds part

Return Value

Type: String
Sexagesimal representation of degrees input value, as hours, minutes, and seconds
Remarks

If you need a leading plus sign, you must prepend it yourself. The delimiters are not restricted to single characters.

See Also