# 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 1001
- `from` (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:

```json
{
  "value": "1",
  "from": "deg",
  "to": "arcmin"
}
```

Response:

```json
{
  "result": {
    "numerator": "60",
    "denominator": "1"
  }
}
```

## How to call it

### MCP

Connect `https://computefirst.net/mcp` ([setup](/docs#connect)), then call `execute` with:

```json
{
  "id": "angle-dms-convert",
  "version": "1.0.0",
  "input": {
    "value": "1",
    "from": "deg",
    "to": "arcmin"
  }
}
```

### HTTP (no key)

```sh
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](/v1/tools/angle-dms-convert/versions/1.0.0).

### CLI

```sh
node cli.mjs run angle-dms-convert 1.0.0 --input input.json --base-url https://computefirst.net
```

Get the client at [/clients/cli/](/clients/cli/).

## Related tools

- [Integer base convert](/tools/integer-base-convert): Convert a signed integer string between bases 2 and 36 using BigInt.
- [Mixed number to rational](/tools/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](/tools/rational-to-mixed-number): Convert a rational number into a sign, whole part, and proper-fraction numerator/denominator.
- [Array integer adjacent diff](/tools/array-integer-adjacent-diff): Replace an array of canonical integer strings with consecutive first differences.
- [Array integer clamp](/tools/array-integer-clamp): Clamp an array of canonical integer strings to optional inclusive min and max bounds.
- [Array integer cumulative sum](/tools/array-integer-cumulative-sum): Replace an array of canonical integer strings with equal-length prefix sums.
