Arithmetic between WDX values?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Arithmetic between WDX values?

Post by *JohnFredC »

Is there a method/plugin/whatever of doing arithmetic in custom columns?

I want to do something like: [=imgsize.x]/[=imgsize.y] to get the ratio of height to width for my image files. Some control over decimals would be great...
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

No not in general but in this case you could use imgsize.Aspect Ratio
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Of course. How did I miss that?

Thanks!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
nn1k3
Member
Member
Posts: 136
Joined: 2007-02-06, 16:59 UTC

Re: Arithmetic between WDX values?

Post by *nn1k3 »

As expected, a custom column with

Code: Select all

[=tc.writedate]-[=tc.creationdate]
simply displays 2 dates separated by a dash: 01/19/2021 11:51-03/20/2020 10:58

I would have liked to quickly list the number of days between two events, but that is not important.

I can of course do that arithmetic later with these steps:
1. Configure custom columns to display two dates in two two columns.
2. Select some rows
3. Menu Mark Copy To Clipboard With All Details
4. Paste into a spreadsheet.
5. Subtract the two date columns.

The ability to copy file details revealed in custom columns is very useful.
Post Reply