Math node truncate operator tooltip provides no explanation #75522

Closed
opened 2020-04-08 11:03:01 +02:00 by Wouter Stomp · 8 comments

System Information
Operating system: Darwin-19.4.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.8.24

Blender Version
Broken: version: 2.83 (sub 11), branch: master, commit date: 2020-04-04 16:55, hash: blender/blender@505a19ed75
Worked: unknown

Short description of error
The tooltip for the truncate operator in the shader math node is just "trunc(A)" which does not explain anything.
Suggested new text: "Removes the digits following the decimal point of A."

Exact steps for others to reproduce the error
Open shader editor
Add math node, change to truncate
Hoover mouse over truncate.

**System Information** Operating system: Darwin-19.4.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.8.24 **Blender Version** Broken: version: 2.83 (sub 11), branch: master, commit date: 2020-04-04 16:55, hash: `blender/blender@505a19ed75` Worked: unknown **Short description of error** The tooltip for the truncate operator in the shader math node is just "trunc(A)" which does not explain anything. Suggested new text: "Removes the digits following the decimal point of A." **Exact steps for others to reproduce the error** Open shader editor Add math node, change to truncate Hoover mouse over truncate.
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser self-assigned this 2020-04-08 18:16:55 +02:00
Member

Official from here :

Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x

It is not the same as removing the digits, it is like floor() for positive and ceil() for negative numbers.
Will change later...

Official from [here ](https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/trunc.xhtml): > Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x It is not the same as removing the digits, it is like `floor()` for positive and `ceil()` for negative numbers. Will change later...
Member

Well, that was dumb, it IS actually the same as removing the digits... sorry about that

Well, that was dumb, it **IS** actually the same as removing the digits... sorry about that
Author

Yeah I was breaking my head over it yesterday, trying with floor and ceil and wondering what I was missing :-)

Yeah I was breaking my head over it yesterday, trying with floor and ceil and wondering what I was missing :-)

This issue was referenced by blender/blender@2845b232a7

This issue was referenced by blender/blender@2845b232a77d37733b20aafd366cf0f2533aff43
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#75522
No description provided.