Angle DMS convert
angle-dms-convert · version 1.0.0 · Numbers & math · free, no key needed
Convert a signed integer angle between degrees, arcminutes, and arcseconds as an exact rational.
Use when you need to: angle dms convert · convert degrees arcminutes arcseconds · degree minute second conversion.
Supported
- angle dms convert
- convert degrees arcminutes arcseconds
- degree minute second conversion
Not supported
- radians
- gradians
- wrap to 0..360
- DMS composite objects
Behavior
- value is a canonical integer string; negative values are orientations and are not wrapped.
- from and to are exactly deg, arcmin, or arcsec.
- 1 deg equals 60 arcmin equals 3600 arcsec.
- The output is the reduced canonical rational of value * from_arcsec / to_arcsec in the target unit.
Input
value(string, required): max length 1001from(one of "deg", "arcmin", "arcsec", required)to(one of "deg", "arcmin", "arcsec", required)
Output
numerator(string, required)denominator(string, required)
Limits
- max digits: 1000
Example
Request input:
{
"value": "1",
"from": "deg",
"to": "arcmin"
}
Response:
{
"result": {
"numerator": "60",
"denominator": "1"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "angle-dms-convert",
"version": "1.0.0",
"input": {
"value": "1",
"from": "deg",
"to": "arcmin"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/angle-dms-convert/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"value":"1","from":"deg","to":"arcmin"}'
The machine-readable contract is at /v1/tools/angle-dms-convert/versions/1.0.0.
CLI
node cli.mjs run angle-dms-convert 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Integer base convert: Convert a signed integer string between bases 2 and 36 using BigInt.
- Mixed number to rational: Convert a mixed number (sign, whole part, proper-fraction numerator and denominator) into a single reduced rational.
- Rational to mixed number: Convert a rational number into a sign, whole part, and proper-fraction numerator/denominator.
- Array integer adjacent diff: Replace an array of canonical integer strings with consecutive first differences.
- Array integer clamp: Clamp an array of canonical integer strings to optional inclusive min and max bounds.
- Array integer cumulative sum: Replace an array of canonical integer strings with equal-length prefix sums.