Issue with Rounding Number Token in Renaming Action (Hazel

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hello, I'm encountering an issue with rounding a number in the renaming action using Hazel 6.0.4. Here's what I've tried so far:
Selecting 0 from the dropdown, which should round the number to a whole number, doesn't seem to work.

I used Edit Number Format and entered the custom format specifier %.0f, which I expected would round the number to zero decimal places, but it has no effect. As a workaround, I attempted using the Adjust Number… option (e.g., adding 0.5) to force rounding before formatting, but that also hasn't produced the expected results. Could you please advise if there's a bug in the current version or if I'm missing a configuration step? Any guidance or updated documentation on how to correctly round numbers in the renaming action in Hazel 6.0.4 would be greatly appreciated.

Thank you!
-DJ
davidelloyd
 
Posts: 15
Joined: Mon Jul 01, 2024 6:29 pm

You can't enter format strings like %.0f. As of now, there is no way to format decimal places. If anything, numbers will be truncated (floor) instead of rounded.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support