smallest positive floating point number
Posted to
tcl
by pooryorick at Sun May 27 16:15:42 GMT 2018
view raw
#! /bin/env tclsh
proc
firstfloat {} {
while
1 {
set
x 0.[
string
repeat 0 [
incr
i]]1
if
{
$x
== 0} {
return
$best
}
set
best
$x
}
}
puts
[firstfloat]
Recent Posts
tcl by kevin_walzer
13 days ago
openbsd by Bradipo
20 days ago
tcl by emiliano
24 days ago
tcl by de
24 days ago
tcl by dburns
34 days ago
tcl by kbk
40 days ago
tcl by Stu
43 days ago
tcl by Stu
43 days ago
tcl by Stu
57 days ago
tcl by mookie
60 days ago
Submit
New paste
Documentation
From Jabber