Our response time is longer than usual currently. We're working to answer users as quickly as possible and thank you for your continued patience.

# It is very confusing that formulas such as Sin do not calculate unless you put in units such as mm, pix, etc.

## Recommended Posts

In the Transform panel, the calculation between numbers is done as it is, but functions such as sin are not calculated unless the units are entered. I am very confused.
The deformation panel will calculate the numbers, but when using functions such as Cos, Sin, etc., you have to put in the units for the calculation to work.
Example1: 20 + 40
→ The number 60 is entered.Good!!
Example2: cos(33)
→ The result of the calculation does not change.Bad work

Example: cos(33)mm
→0.8　good...but.
Since you specified units such as mm, inch, px, etc. when you created the document, it is a good idea to use those units if you did not include them when you used the function.

Since mm and pix are specified in the document, it would be better to be able to calculate without putting in units.
Thanks

##### Share on other sites

I would guess that what is happening is as follows:

When you use pure numbers such as 20+30, you get a pure number that Affinity assumes is in the default unit.

When you use a trig function, the result is an absolute number with no intrinsic unit. It needs a unit applied to make it useable.

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

##### Share on other sites

27 minutes ago, John Rostron said:

When you use pure numbers such as 20+30, you get a pure number that Affinity assumes is in the default unit.

When you use a trig function, the result is an absolute number with no intrinsic unit. It needs a unit applied to make it useable.

If w = 20 mm and h = w+30, then h = 50 mm. So if w = 33 mm and h = 20+cos(w), shouldn’t h = 20.84 mm?

Alfred
Affinity Designer/Photo/Publisher for Windows 1.10 • Windows 10 Home/Pro

##### Share on other sites

1 hour ago, Alfred said:

If w = 20 mm and h = w+30, then h = 50 mm. So if w = 33 mm and h = 20+cos(w), shouldn’t h = 20.84 mm?

Yes it should. I was exploring a possible reason why it was not. I would guess it it probably arises at a some very low level of coding.

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×

• #### Affinity

×
• Create New...