# Changing precision

**URL:** https://discourse.slicer.org/t/changing-precision/45987
**Category:** Support
**Tags:** dicom
**Created:** [January 29, 2026, 4:34pm UTC](https://discourse.slicer.org/t/changing-precision/45987 "2026-01-29T16:34:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)
#### Post date: [January 29, 2026, 4:34pm UTC](https://discourse.slicer.org/t/changing-precision/45987/1 "2026-01-29T16:34:25Z")

</div>

Is there any way I can change the precision of my voxel signal? Not just for displaying the values but actually changing precision.

I have voxels with very small values (10\*\*(-7)) and I want them rounded to 3 decimals.

I know I can do it through Python code if I transform by whole dicom files but is there any way to do it through the Slicer interface on volumes I have already loaded?

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [January 29, 2026, 5:48pm UTC](https://discourse.slicer.org/t/changing-precision/45987/2 "2026-01-29T17:48:52Z")

</div>

> [@dpvaldes](#):
>
> I know I can do it through Python code if I transform by whole dicom files but is there any way to do it through the Slicer interface on volumes I have already loaded?

I presume you are talking about image spacing? If so, you can manually edit those values in the Volumes module, and save it (though you will have to resave them as NRRD).

The question is why do you want to do that? You can set the precision field of slicer to 3 significant digits and it will only display the 3 digits, without you having to do this manually. Check out the Units field in the Application Settings and see if does what you want to do.

---

<div class="post-metadata">

### Author: ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)
#### Post date: [January 29, 2026, 6:27pm UTC](https://discourse.slicer.org/t/changing-precision/45987/3 "2026-01-29T18:27:10Z")

</div>

I’m not talking about spacing. I want to perform other operations were I cannot have 0.0000001 signals that are not physically relevant. Changing the displayed values is of no use for this.

I managed to do something like I this with the ThresholdImageFilter in Simple Filters. Not the same that I want but it works for the post-processing I want to do.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [January 29, 2026, 7:16pm UTC](https://discourse.slicer.org/t/changing-precision/45987/4 "2026-01-29T19:16:05Z")

</div>

If you want to change your intensity values (filter, round, etc), I would use python. Something like this:

> **[array - Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#modify-voxels-in-a-volume)**
>
> Additional options may be specified in properties argument. For example, load an image stack by disabling singleFile option:

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [January 30, 2026, 11:51am UTC](https://discourse.slicer.org/t/changing-precision/45987/5 "2026-01-30T11:51:16Z")

</div>

Not sure if the units settings would help with this (Edit / Application Settings / Units)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/1/31ebba70f36bc4b80a407c7ac7b99b0f9335aae3.png)

---

<div class="post-metadata">

### Author: ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)
#### Post date: [January 30, 2026, 1:15pm UTC](https://discourse.slicer.org/t/changing-precision/45987/6 "2026-01-30T13:15:23Z")

</div>

Thank you but that only changes the displayed values, not the actual values.

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [January 30, 2026, 1:21pm UTC](https://discourse.slicer.org/t/changing-precision/45987/7 "2026-01-30T13:21:41Z")

</div>

OK I didn’t have the time to read the comments carefully. In this case I suggest either use numpy as @muratmaga suggest, or if you prefer not to bother with scripts, I’d use the `ShiftScaleImageFilter` in the Simple Filters module.

---

<div class="post-metadata">

### Author: ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)
#### Post date: [January 30, 2026, 1:29pm UTC](https://discourse.slicer.org/t/changing-precision/45987/8 "2026-01-30T13:29:38Z")

</div>

I do a lot of scripting but for this particular case I wanted to see if there was a GUI option, I finally settled with the ThresholdImageFilter.
