Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Quick Python formatting question

$
0
0

@Helvetosaur wrote:

OK, this is one I know should be able to be solved easily, despite searching here and there I haven’t found out how…

result="{}".format(040)
print result

result is >>>32 ???

0400 makes 256, etc… So it is automagically interpreting it as octal? How do I get it to just give me the raw string equivalent?

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles