# Excessive rounding of displayed SkyCoord transforms

**URL:** <https://community.openastronomy.org/t/excessive-rounding-of-displayed-skycoord-transforms/377>\
**Category:** Astropy\
**Tags:** astropy, question\
**Created:** [June 22, 2022, 3:45am UTC](https://community.openastronomy.org/t/excessive-rounding-of-displayed-skycoord-transforms/377 "2022-06-22T03:45:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gcecil](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@Gcecil](https://community.openastronomy.org/u/Gcecil)\
**Post date:** [June 22, 2022, 3:45am UTC](https://community.openastronomy.org/t/excessive-rounding-of-displayed-skycoord-transforms/377/1 "2022-06-22T03:45:02Z")

</div>

```auto
c = SkyCoord("15h00m00s","-29d00m00s")
c.galactic.to_string
d = SkyCoord("15h00m00s","-29d00m01s")
d.galactic.to_string

```

Both display (334.103, 25.979) and i don’t see how to retrieve more digits to get

```auto
334.1031, 25.9791
334.1029, 25.9788

```

Need 4 digits in mantissa to resolve arcseconds.

---

<div class="post-metadata">

**Author:** ![ayshih](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/ayshih/32/84_2.png) [@ayshih](https://community.openastronomy.org/u/ayshih)\
**Post date:** [June 25, 2022, 4:07am UTC](https://community.openastronomy.org/t/excessive-rounding-of-displayed-skycoord-transforms/377/2 "2022-06-25T04:07:51Z")

</div>

You can of course retrieve the components directly (e.g., `c.galactic.l` or `c.galactic.b`) to get the full precision. But, if you’re specifically looking for `to_string()` to show more precision, here are some options:

```python
>>> c.galactic.to_string(precision=8)
'334.10309234 25.97905714'
>>> c.galactic.to_string(style='dms')
'334d06m11.13241986s 25d58m44.60572168s'

```

The `style` keyword is described in [the docstring for `SkyCoord.to_string()`](https://docs.astropy.org/en/stable/api/astropy.coordinates.SkyCoord.html#astropy.coordinates.SkyCoord.to_string). Any other keywords that you supply are passed through to `Angle.to_string()`, and the `precision` keyword is described in [the docstring for `Angle.to_string()`](https://docs.astropy.org/en/stable/api/astropy.coordinates.Angle.html#astropy.coordinates.Angle.to_string).

---

<div class="post-metadata">

**Author:** ![Gcecil](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@Gcecil](https://community.openastronomy.org/u/Gcecil)\
**Post date:** [June 25, 2022, 4:29am UTC](https://community.openastronomy.org/t/excessive-rounding-of-displayed-skycoord-transforms/377/3 "2022-06-25T04:29:18Z")

</div>

Thank you, i didn’t dig deep enough into the \*kwargs to find precision.
