Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2017 23:07:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221869] bc doesn't always convert ibase to obase correctly
Message-ID:  <bug-221869-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221869

            Bug ID: 221869
           Summary: bc doesn't always convert ibase to obase correctly
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: edgar@pettijohn-web.com

While using bc to convert from binary to decimal I encountered this.

edgar@FreeBSD$ bc
ibase=3D2
obase=3D10
1111
1111

I would expect 1111(base 2) to convert to 15(base 10).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221869-8>