I don't think it's supported; you can try adding it (in branch master), should be easy, just check the currencies match
On Mon, Dec 13, 2021 at 9:13 PM Ben L <milehigh1...@gmail.com> wrote: > Is there a way to subtract Amounts (same currency) in bql? > > select cost(position) - value(position); > > I get: > > TypeError: unsupported operand type(s) for -: 'Amount' and 'Amount' > > I can structure the query so the results are only one currency. Is there a > function that will report an Amount as just a number (lose the currency)? > > Thanks, > > Ben > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beancount+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/3bb043d0-e8a9-4cef-ad93-1987100df5ccn%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/3bb043d0-e8a9-4cef-ad93-1987100df5ccn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhP0AqK0UbizDWoi1xeJVY0zcZr_pgoXr5skGpv4FMr%3DvQ%40mail.gmail.com.