ID 507084 - An incorrect value is given when sampling the Expression node with a float number as an exponent

Follow

Problem summary
An incorrect value is given when sampling the Expression node with a float number as an exponent.
 
Customer reported version
nuke.12.2v5
 
Customer reported platform
centos7
 
Steps to reproduce
1) In Nuke, create a Constant node set to White, with a value greater than 5.
2) Create an Expression node and set the red channel with the value: pow(r,2.4) 
3) Observe the output in the Viewer by sampling a pixel with Ctrl+Left mouse-click.


 
Alternatively, compare the results using math.pow([value],2.4) - where [value] is the chosen number in step 1. Example Python in the Script Editor using the following snippet:
import mathimport nukeprint("expression= " + str(nuke.toNode('Expression1').sample(channel='rgb.red', x=6, y=6)))print("math= " + str(math.pow(6, 2.4)))
 
Expected behavior
The Expression value should output the same sample as the math value.
 
Actual behavior
An incorrect value is given when comparing the math results with exponentials greater than 5.
 
Workaround
There is no available workaround at this time.
 
Reproduced by Support in:
Nuke 13.1v3 - Windows 10, CentOS 7
Nuke 13.1v1 - Windows 10
Nuke 13.0v1 - Windows 10
Nuke 12.0v1 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.0v1 - Windows 10
Nuke 9.0v1 - Windows 10, CentOS 7
 
Earliest version tested
Nuke 9.0v1 - This issue appears to be in all versions of the product
 
 

    We're sorry to hear that

    Please tell us why