1. 05 Sep, 2018 1 commit
    • Marco Trevisan's avatar
      number: add support for parsing integer literals · ad3b8d0a
      Marco Trevisan authored
      Make possible to use integer literals to use numbers with base other than the
      decimal without having to use the sub-fixed syntax.
      
      So, now calculator recognizes numbers such as:
        - 0b10000001 and 0B01111110 (binary)
        - 0xdeadbeef and 0XBAADA555 (hex)
        - 0o01234567 and 0O76543210 and 01234543210 (octal)
      
      And thus all the fancy operations like "0xff in dec" can be done now.
      
      Added various tests to check the new behavior, and nothing broke for the old
      cases.
      
      Fixes #36
      ad3b8d0a
  2. 19 Mar, 2018 1 commit
  3. 26 Jan, 2018 2 commits
  4. 27 Mar, 2017 1 commit
    • PioneerAxon's avatar
      Update parser to allow complex conversion. · db87ca73
      PioneerAxon authored
      This patch rewrites the part of parser that handles conversions.
      
      With the new code, it's possible to convert variables, as well as
      complex equations.
      With this patch, the following are possible.
      10×20 m² in acres
      1000+500 GB in GiB
      ((10 inch in cm) × (1 feet in cm)) cm² in m²
      2π radians in degrees
      3π + π÷2 radians in degrees
      
      This is perticularly useful for people working with multiple units at
      the same time.
      e.g. Calculating Gravitational force between a 0.25 pound bag of chips
      and 1.25kg laptop that are 17 feet away from each other.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=770344
      db87ca73
  5. 13 Feb, 2017 2 commits
  6. 29 Nov, 2016 1 commit
  7. 20 Oct, 2016 1 commit
  8. 01 Aug, 2016 1 commit
  9. 15 Apr, 2016 1 commit
  10. 10 Feb, 2016 1 commit
  11. 10 Jan, 2016 1 commit
  12. 28 Dec, 2015 2 commits
  13. 22 May, 2015 1 commit
  14. 10 May, 2015 2 commits
  15. 23 Apr, 2014 2 commits
  16. 07 Apr, 2014 1 commit
  17. 01 Apr, 2014 1 commit