|
|
Subscribe / Log in / New account

An interview with Larry Wall (LinuxVoice)

An interview with Larry Wall (LinuxVoice)

Posted Dec 28, 2020 19:59 UTC (Mon) by raiph (guest, #89283)
In reply to: An interview with Larry Wall (LinuxVoice) by raiph
Parent article: An interview with Larry Wall (LinuxVoice)

2020 update of my own comment. One can now write type conversions like so:

my Num() $bar = 0.00001234

which will store a float in $bar by converting the rational 0.00001234.


to post comments

An interview with Larry Wall (LinuxVoice)

Posted Dec 31, 2020 15:07 UTC (Thu) by flussence (guest, #85566) [Link]

Writing it as 0.00001234e0 also works. Spelling out exponents feels odd at first, but it turns out the same trick works in C.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds