Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -1,35 +0,0 @@
|
|||
(float2fraction=
|
||||
integerPart decimalPart d1 dn exp sign
|
||||
. @( !arg
|
||||
: ~/#?integerPart
|
||||
( &0:?decimalPart:?d1:?dn
|
||||
| "."
|
||||
[?d1
|
||||
(|? 0|`)
|
||||
( &0:?decimalPart
|
||||
| ~/#?decimalPart:>0
|
||||
)
|
||||
[?dn
|
||||
)
|
||||
( &0:?exp
|
||||
| (E|e) ~/#?exp
|
||||
)
|
||||
)
|
||||
& ( !integerPart*(-1:?sign):>0:?integerPart
|
||||
| 1:?sign
|
||||
)
|
||||
& !sign*(!integerPart+!decimalPart*10^(!d1+-1*!dn))*10^!exp
|
||||
);
|
||||
|
||||
( out$float2fraction$"1.2"
|
||||
& out$float2fraction$"1.02"
|
||||
& out$float2fraction$"1.01"
|
||||
& out$float2fraction$"10.01"
|
||||
& out$float2fraction$"10.01e10"
|
||||
& out$float2fraction$"10.01e1"
|
||||
& out$float2fraction$"10.01e2"
|
||||
& out$float2fraction$"10.01e-2"
|
||||
& out$float2fraction$"-10.01e-2"
|
||||
& out$float2fraction$"-10e-2"
|
||||
& out$float2fraction$"0.000"
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue