Jump to content

Search the Community

Showing results for tags 'calculator'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 19 results

  1. bkmontgomery

    Percent Change

    Hi All, I'm new here, and I've just created my first workflow: Percent Change. For some reason, I can never do this in my head, and I'm tiring of looking up the formula. This workflow lets you calculate the percent of change between two values, using the % symbol: % <value1> <value2> So, something like % 3 6 would give you a result of 100. The result is displayed in Large text and copied to the clipboard. You can find it, here: http://www.packal.org/workflow/percent-change I'd love any feedback.
  2. The Output settings for the calculator state that the grouping separator will be ignored when copying the result: However, when using the system locale (set to Swiss German in my case), having selected "Show thousands grouping separator", performing a calculation in Alfred and copying the result still copies the separator into the clipboard as well: Settings: see attachment Calculation example: 5 * 365 Result displayed in Alfred: 1'825 (see attachment "calculation") Hitting Cmd-C to copy the result and pasting it into a simple text editor or e-mail results in the exact same formatting: 1'825 My expectation would have been to get 1825 (i.e. no separator) which is useful to use the resulting number in other calculations (e.g. in Excel)
  3. dfay

    RPN calculator

    A simple RPN calculator that works like the built-in calculator. Requires spaces as delimiters between elements in the expression. Built using deanishe's Alfred python library. e.g. 19 2.14 + 4.5 2 4.3 / - * produces an Alfred result: 85.2974418605 Action this item to copy this number to the clipboard There is a single keyword: rpn Download link: https://www.dropbox.com/s/9ay1z2mubifcun6/RPN Calculator.alfredworkflow?dl=0 2018-07-10: updated with working link
  4. robert_muench

    =cos(-180) => -,598460069 ???

    Hi, I'm wondering about the result for '=cos(-180)' which is shown as -,598460069 but should be -1 Any idea what's going on?
  5. How do I preform simple calculations in a workflow, I need to have the workflow take my input and do this {querr}*(1/60)= very simple, just not sure how to make a workflow do that. Thank you
  6. Alfred unit converter is a really fast smart calculator for Alfred with support for unit conversions to make it a bit comparable to the Google Calculator and Wolfram Alpha. If new units and/or other names for units should be added please let me know by creating an issue at:https://github.com/WoLpH/alfred-converter/issues Example queries Downloadable from Packal: http://www.packal.org/workflow/unit-converter 1m in cm # Just a simple conversion 2^30 byte # Using powers before conversion 5' # Converting units with special characters 20" # Like above 5 * cos(pi + 2) # Executing mathematical functions 5 * pi + 2 mm in m # Mathematical constants with unit conversion 1 * cos(pi/2) - sin(pi^2) # More advanced mathematical expressions ln(e^10) # Testing the ln(x) alias of log _e(x) log(e^10) # The normal log method 5+3^2" in mm # Testing math with unit conversion 1 + 2 / 3 * 4) mm^2 in cm^2 # Unbalanced paranthesis with unit conversion ((1 + 2 / 3 * 4) mm^2 in cm^2 # Unbalanced paranthesis the other way inf - inf # Not actually possible, but we backtrack to "inf" The list of units and conversions was downloaded from:http://w3.energistics.org/uom/poscUnits22.xml It returns results within 50 milliseconds making it fast enough to use the results instead of the standard alfred calculator. It supports more too Note: the parser automatically works when you start with a number or a ".". For all other cases (functions for example) it's best to just use "=". For example: "=ln(e^5)"
  7. rounak

    calculator behaviour

    Settings: Unchecked Enable standard calculator Checked Enable advanced calculator 1. Typed =5+5 result shows 10 2. dismissed alfred 3. activated alfred again 4. typed 5+6 (forgot to type =) result shows 10 result must show nothing when = is not pressed. I am not used to looking at the result, when I am typing, thus it is likely that I shall assume the previous answer as the current answer.
  8. I love Alfred, and I invoke it all the time to use the Calculator function. Though, I find that the results often have a cramped visual read out, the kerning between the numbers is a bit tight and difficult to read, I think it could be better spaced out visually. Example: the "785" is very closely spaced and could breathe more, and thus be more easily readable. Actually, the Kerning across all results could probably increase, as it all does feel very tight. Maybe it could even be a user adjustable setting? Also, is there any chance Spotlight's currency conversions could make their way to Alfred too?
  9. Putting 2^49 into Alfred yields 562,949,953,421,312 - as expected. Putting 2^50 into Alfred yields 1,125,899,906,842,620 (copied-to-clipboard value is 1.12589991e15). Hence, the display is incorrect with thousands separator (Features->Calculator) enabled. The underlying value is in scientific notation, but the displayed value is simply given trailing zeros to compensate. Thanks for looking!
  10. It'd be cool if the calculator output would support either locale-specific or configurable thousand grouping separator. I have it configured to " " (one space) in Localization.prefPane, but Alfred only gives me either no grouping at all, or comma or dot depending on what I've chosen for decimal separator.
  11. What? Synopsis: If you are regularly attending meetings where people from different countries need to join and you need a quick and easy way to check a future date in all the time zones, wouldn't you love just saying "April 17 10am london to paris,germany,india" And boom. You would know what date and time April 17 10am is in paris, germany and india? Every timezone calculator I've used so far either have clunky drop down menus or, like google time search, only works with current dates, not future dates. Not very helpful. Read on. This workflow does just that. Features: 1) enter your own shortcuts for long timezones (there is a convenience code mapping in a file you can extend) 2) enter full timezones 3) enter cities,countries not part of above and it will use Google to convert it to a timezone (best guess) 4) allows you to enter many destinations at once (tzc 10am md to paris,london,czech,algeria) Download Download link Current version of workflow 1.4 Changelog May 5 2013: Released v1.4 - fixed bugs. Removed dependency on DateTime - easier to install for non dev. users. No xcode etc. needed. The workflow should work without any additional installation steps (or so I hope) May 4 2013: Released v1.3 -added Google api integration, added explicit instructions on install pre-requisites April 18 2013: Original version Keyword tzc How This is an easy to use time zone converter with multiple tz support. Specifically, I often have 'meeting scheduling requirements' with customers from all around the world. So someone asks me 'hey are you ok with a meeting on April 17th at 10am london time?' and then given that I want to make sure that time is ok with me as well as my team members who are in different countries, I need to quickly calculate what that means in different timezones. tzc to the rescue Most available calculators are cumbersome, or, don't handle multiple zones, etc. so I wrote my own All you need to do for the above is, in alfred type "tzc April 17 10am london to paris,germany,india" and boom - you will have what this means to folks in paris, germany and india. Alternately, you can just say "tzc 10am london to paris, germany, india" to skip date. Many other options - see help file in the worflow Here you are converting 10AM maryland to paris and bogotia. Note the different icon for Bogota. This means, bogota was not recognized and it did a google API matching to resolve the timezone Here is an example of a future date + time conversion Note that this workflow requires some perl modules to be installed, so if it does not find them, it will tell you. See below for installation instructions Also, in that workflow folder, there is a file called mycities.inc - you can assign shortnames to timezones so you don't have to remember long timezone names (london,paris,germany examples are all shortnames defined in mycities.inc - extend it to add your own). To edit the shortnames "tzc edit" To get help, "tzc help" Troubleshooting (if things don't work) This workflow needs two perl modules to be installed. They are Date::Parse & LWP::UserAgent. You *should* already have them installed but if the workflow is telling you one of these modules are missing, read on: Step 1: Launch a terminal Step 2: Check if you have both Date::Parse and LWP::UserAgent installed In the terminal, type and then If either of them generate an error, you need to follow the next steps. If neither of the above produce any output, you have them installed already. Enjoy the workflow - you don't need to follow the rest of the steps. Step 3: Type in It may ask you lots of questions, just go with defaults/yes. Get to a point where you get a cpan> prompt Then type, one by one To make sure, exit cpan, launch a terminal and repeat step 2 to make sure these don't print any errors. If none of these result in an error, you are all set. Comments, feedback welcome. Its possible I am not leveraging some cool things in Alfred - feel free to point them out to me as well.
  12. This workflow extends Alfred's built-in calculator function. It recognizes durations as input and allows them to be added / subtracted. For example, if you type "8:00:18 - 4:19:23" into Alfred, you'll get "3:40:55". You may add or subtract as many durations as you like (e.g. "3:32:55 - 5:57 + 4:50:14"). Download Preview:
  13. The way I use the calculator most often in Alfred is, I enter a partial calculation, hit enter, then toggle Alfred again, hit paste, and continue my calculation. I was thinking this could be set up so that a right arrow (or a tab, or whatever shortcut) could change Alfred's currently entered text to the result of the current entry. In other words, I enter "120-20" and press right arrow. The text box then shows "100", and if I just type "/5" the text box will contain "100/5" and the subtext will show "20". Whereas currently, if I enter "120-20/5", the subtext will (correctly) show 116. Alternatively, and perhaps more usefully, a right arrow double tap at the end of the line could just enclose the currently entered expression in parentheses. Then the sequence would be, "120-20" (right arrow) "/5", whereupon the display would show "(120-20)/5" with the subtext "20". And while we're at it, if we could get the parser to recognize that parentheses directly next to a number means multiplication, that would be awesome. That is: 53(20) = 1060. Currently it only recognizes multiplication if an asterisk * is typed. (Spotlight can parse this correctly...we can't have Spotlight outdoing Alfred!) o_O
  14. ClintonStrong

    QuickCalc [Updated Apr 17]

    An alternative calculator for Alfred 2, supporting custom functions and variables, automatic parentheses matching, and percentages. It also supports k, m, and b (or thousand, million, and billion) as suffixes on a number. It's essentially a wrapper around bc with a few extras added in. Installation Simply download the workflow and open the file. You'll need to have the Powerpack to install workflows. Default functions I've tried to add support for most of the functions from Alfred's advanced calculator. Supported functions: sin, cos, tan, log, log2, ln, exp, abs, sqrt, asin, acos, atan, sinh, cosh,tanh, asinh, acosh, atanh, ceil, floor, round, trunc, rint, near, dtor, rtod, pow, logx, mod, min, max. Most of these should be similar to the implementation of Alfred's advanced calculator, but there are a few additions: pow(x, y) can be used to raise x to the power of y, without the integer limitations of the ^ operator in bc. logx(base, x) lets you get the log of a number with a defined base (log calculates with a base of 10 and log2 with a base of 2). mod(x, y) performs the modulo operation. dtor(d) and rtod® converts between degrees and radians (this is part of Alfred's calculator, but I'm documenting them here since googling them doesn't turn up useful results). Defining custom functions and variables After using the workflow at least once, you can find the custom functions/variables file at "~/Library/Application Support/Alfred 2/Workflow Data/com.clintonstrong.QuickCalc/custom.txt" Here's an example custom.txt file: define f2c(q) { return (q - 32) / 1.8}define c2f(q) { return 1.8 * q + 32}tax = 8.25%vat = 20% In this case, I just defined some functions to convert between celsius and fahrenheit, and set up some variables to use in calculations. It uses the syntax of GNU bc. Known bugs and limitations When using functions that take multiple arguments, use both a comma and a space to separate the arugments. This is necessary since commas and spaces can be used as thousands separators. For example, use min(5, 10) instead of min(5,10). Because percent signs % are used for percentages, you'll need to use the mod function for modulo. For example: mod(10, 3)evaluates to 1. Due to limitations with bc, the exponentiation operator (^ or **) doesn't allow numbers to be raised to the power of a float (a number with digits after the decimal place). To get around this, you can use the pow function. For example, pow(2, 2.5) evaluates to 5.6568. Percentages don't work as expected within functions. They still get converted (by dividing by 100), but it doesn't work correctly with addition and subtraction (100 + 10% evaluates to 100.10 rather than 110). Percentages should still work fine outside of functions. The workflow currently doesn't have support for detecting locales. It expects a period . to be used as a decimal point, with commas, underscores, or spaces as optional thousands separators. More info bc OS X Manual Page bc programming language on Wikipedia phodd's collection of functions, some of which are used here. Changelog Apr 17, 2013: Added 'x' for multiplication. Bugfixes. Fix for Ruby 2.0.0/Mavericks.
  15. Here's my first public workflow... you can enter a date, and it opens a page for that date in Google Calendar. As you can see, the workflow shows you the day of the week for that date immediately in the action title. It also does some simple date arithmetic, letting you go forward or backward a number of days, weeks, months, or years from a given date. Or you can leave off the date and just use +/-, and it will navigate forwards or backwards from today. Download Readme file (with instructions on how to change the date format to DD/MM/YY) GitHub source
  16. I would like to make a workflow that 1. opens the calculator app (this I can do) 2. and then uses the calculator command [command T] to open the tape window. (I have no idea how to link the {command T] to part one.) Perhaps I need some kind of script?? Thanks.
  17. effectivepull

    Calculator Question

    I am a recent convert from Launchbar and I'm loving Alfred 2! I have a question about the calculator. Is there a way that I can use the "x" instead of the "*" when I want to multiply numbers?
  18. Hey ho, It would be nice to have a setting for the calculator to set the decimal separator for the output to one used in the input. So, if you turned the input setting to "Use decimal point and comma as separator" the results would look like this: 2,5 * 5 > 12,5 and 2.5 * 5 > 12.5 This would only make sense, 'cause you already recognize the separator used in the input. Thanks in advance -K
  19. 315234

    Loss of precision in calculator

    Hi! There is a loss of precision with certain operations when using the calculator. For example, the following entry: =1.1294776E-005 / 24.0 produces the following result: .000000471 ...which has only 3 significant figures. It should give something like this (this is from a python interpreter): 4.7061566666666667e-07
×