Mod() arithmetic?

General discussions about LaunchBar
Kirby Krieger
Posts: 12
Joined: Thu Jul 21, 2011 10:06 pm

Mod() arithmetic?

Postby Kirby Krieger » Mon Apr 10, 2017 7:53 pm

When using LaunchBar's built-in calculator, typing "mod" brings up the function "mod()", which looks just like what I want: modular arithmetic (input two integers, outputs the remainder after dividing). But I haven't stumbled on the secret syntax. How can I make this work?

Kirby Krieger
Posts: 12
Joined: Thu Jul 21, 2011 10:06 pm

Re: Mod() arithmetic?

Postby Kirby Krieger » Mon Apr 10, 2017 8:01 pm

:) Found it. Need a pipe character between the goober and the weevil:

mod(31|11) = 9

I could not find this function in the Help. There is a list of _shortcuts_ for functions, but no list of functions (that I could find).

mot
Rank 1
Rank 1
Posts: 34
Joined: Wed Jan 11, 2017 4:51 am

Re: Mod() arithmetic?

Postby mot » Tue Apr 11, 2017 12:04 pm

Thanks for sharing.


Return to “LaunchBar General”

Who is online

Users browsing this forum: No registered users and 1 guest