Jump to content

Talk:Munchausen numbers: Difference between revisions

Line 6:
::: Where would those leading zeros come from? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 00:33, 24 September 2016 (UTC)
:::: See the current ALGOL 68 sample which holds the 4 digits as separate numbers and indexes a table of powers - the non-standard 0^0 allows indexing the table of powers without having to worry whether the digit is a leading zero or not. The sample does this to avoids any multiplication, division or modulo operations. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 19:51, 24 September 2016 (UTC)
::::: Ok, so it's a hack that lets the programmer use a fixed width array of digits without having to bother with the relevant array length. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 20:22, 24 September 2016 (UTC)
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.