# How to get last two decimals of release versions

**URL:** <https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335>\
**Category:** Programming Help\
**Tags:** windows\
**Created:** [April 23, 2024, 8:12pm UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335 "2024-04-23T20:12:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrRibbits](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MrRibbits](https://psychtoolbox.discourse.group/u/MrRibbits)\
**Post date:** [April 23, 2024, 8:12pm UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335/1 "2024-04-23T20:12:27Z")

</div>

Is there a way to know the exact version of PTB3 that is installed? The PsychtoolboxVersion command excludes the final two decimals. Not critical, but I just want to make certain the same release is installed across machines here.

Output of \>\> PsychtoolboxVersion  
ans = ‘3.0.19 - Flavor: Manual Install, 23-Apr-2024 11:58:32’

Platform: Windows 10

thx  
M

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [April 23, 2024, 9:48pm UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335/2 "2024-04-23T21:48:38Z")

</div>

As per the help of that function you tried, use Screen(‘Version’) instead

---

<div class="post-metadata">

**Author:** ![\_qx1147](https://avatars.discourse-cdn.com/v4/letter/_/a8b319/32.png) [@\_qx1147](https://psychtoolbox.discourse.group/u/_qx1147)\
**Post date:** [April 24, 2024, 6:35am UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335/3 "2024-04-24T06:35:49Z")

</div>

While Screen(‘Version’) would serve the OP’s requirements, I still wonder if there is a way to infer the release number (forth number as provided on PTB’s Github [Releases](https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases)). For example, Screen(‘Version’).version==‘3.0.17.581583920’, which is for release v3.0.17.9.

---

<div class="post-metadata">

**Author:** ![MrRibbits](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MrRibbits](https://psychtoolbox.discourse.group/u/MrRibbits)\
**Post date:** [April 24, 2024, 11:19am UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335/4 "2024-04-24T11:19:25Z")

</div>

Yes, actually Screen(‘Version’) isn’t exactly what I need. I should have been more specific. I would like to know the release number that’s on Github, as you wrote.

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [May 13, 2024, 4:50pm UTC](https://psychtoolbox.discourse.group/t/how-to-get-last-two-decimals-of-release-versions/5335/5 "2024-05-13T16:50:30Z")

</div>

Don’t think that is possible atm. The 4th digit was just added to the release tagging process on GitHub for the benefit of Mathworks, as their Matlab Central system can’t deal with anything but decimal release numbers that increment at each software update.

There’s nothing in PTB atm. that encodes that last decimal digit.
