boolean to binary conversion?

817 views
Skip to first unread message

Eric Kangas

unread,
Aug 22, 2012, 11:27:15 AM8/22/12
to sage-s...@googlegroups.com
Hi,

I am wondering if there is a boolean to binary converter function in sage? If not. I have created a sage notebook that can convert boolean (true, false) to binary(1,0). As for creating the actual code to be submitted to sage for the next version do I have to anything different to the code I have in the notebook? Where do I send it for submission?

Eric

David Joyner

unread,
Aug 22, 2012, 11:32:36 AM8/22/12
to sage-s...@googlegroups.com
On Wed, Aug 22, 2012 at 11:27 AM, Eric Kangas <eric.c...@gmail.com> wrote:
> Hi,
>
> I am wondering if there is a boolean to binary converter function in sage?

I'm not sure exactly what you mean but isn't that already built into Python?
>>> int(False)
0

> If not. I have created a sage notebook that can convert boolean (true,
> false) to binary(1,0). As for creating the actual code to be submitted to
> sage for the next version do I have to anything different to the code I have
> in the notebook? Where do I send it for submission?
>
> Eric
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To post to this group, send email to sage-s...@googlegroups.com.
> To unsubscribe from this group, send email to
> sage-support...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>
>

Eric Kangas

unread,
Aug 22, 2012, 5:23:21 PM8/22/12
to sage-s...@googlegroups.com
ok thanks did not know about that at all. So I spend an hour on figuring out 10 lines of code to do the same thing. figures lol.
Reply all
Reply to author
Forward
0 new messages