Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[inches >= 84 AND inches mod 12 == 0]] conversion to ft shows incorrect answer #157

Open
alexozwald opened this issue Feb 8, 2024 · 0 comments

Comments

@alexozwald
Copy link

If you have a problem with the workflow please answer the following questions. Please note that the workflow is only compatible with Alfred 5.

is your problem related to the PHP binary, PHP Path, PHP installation, etc.? Yes.

Are you using the latest version of the workflow? Yes.

Have you installed the workflow dependencies? Yes.

Describe the bug

As in title, if you try to convert any length of inches to feet & inches, and that number if a multiple of twelve, then if it's >= 7 feet, it'll always return XX.0 ft AND XX ft, 12 in.

I'd also recommend switching to X' Y" as an preferred or additional output, but this is just a bug report.

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred '...'
  2. Type '...'
    • 84 in ft
    • 96 in ft
    • 108 in ft
    • ...
  3. See error

Expected behavior

7.0 ft
7 ft, 0 in
NOT 7 ft, 12 in

Debug Output

Input: 84 in ft

[10:52:46.778] Calculate Anything[Script Filter] Queuing argument '4 in ft'
[10:52:46.831] Calculate Anything[Script Filter] Script with argv '(null)' finished
[10:52:46.838] Calculate Anything[Script Filter] {"items":[{"title":"7.0 ft","arg":"7.0","subtitle":"Action this item to copy this number to the clipboard","valid":true,"mods":{"cmd":{"valid":true,"arg":7,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":"7.0 ft","subtitle":"Action this item to copy this value with unit to the clipboard"}}},{"title":"7 ft, 12 in","arg":"7.0","subtitle":"Action this item to copy this number to the clipboard","valid":true,"mods":{"cmd":{"valid":true,"arg":7,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":"7 ft, 12 in","subtitle":"Action this item to copy this value with unit to the clipboard"}}}]}

System information:

  • OS: MacOS 14.2.1
  • Alfred Version 5.1.4 [2195]
  • PHP Version 8.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant