World: r3wp
[Rebol School] Rebol School
older | first |
GrahamC 28-Dec-2011 [4090] | Endo, launch with parameters stopped workng years ago. So, we had to move to call instead |
Endo 28-Dec-2011 [4091] | GrahamC: Thanks. I'll keep that in mind. |
nve 28-Dec-2011 [4092] | @Henrik : thanks a lot ! |
BrianH 28-Dec-2011 [4093x2] | nve, there is a built-in error that might be better for you to use. Try this: >> cause-error 'script 'bad-refines none ** script error: incompatible or invalid refinements |
That error is apparently not in R2 though, sorry. | |
ChristianE 4-Jan-2012 [4095] | nve, there's TOO-MANY-REFINES in R2: >> cause-error 'script 'too-many-refines none ** Script Error: Too many refinements |
Marco 16-Jan-2012 [4096x2] | Is there a way to avoid conversion of numbers to scientific notation by mold? >> mold 0.004 == "4E-3" or have you a function to convert back a string representing a number with exponent to one eithout it? |
eithout = without | |
Gregg 16-Jan-2012 [4098x4] | You have to do it yourself. |
Many people have examples and funcs out there for it. | |
http://www.rebol.org/view-script.r?script=format-decimal.r | |
I have a general FORMAT func I use, but it's quite heavy as it handles a lot of things. | |
Marco 16-Jan-2012 [4102] | Thanks. The one from Nick should be ok. |
Ladislav 16-Jan-2012 [4103] | You can also check http://www.rebol.org/view-script.r?script=printf.r |
Endo 17-Jan-2012 [4104x2] | I've also put a format-number function that I use on Checklists on Altme. It works well for me. >> format-number 1 / 3 == "0.333333333333333" |
Under Checklists / Code Snippets. | |
Marco 18-Jan-2012 [4106] | The function by Nick is a little slow since I have a lot of numbers. This is faster but not very fast: format-decimal: func [x /local e q] [ x: form x if find x "E-" [ e: to-integer next next q: find x "E-" clear q remove find x "." if #"-" = first x [x: next x] insert/dup x "0" e insert next x "." ] head x ] The idea from Ladislav is nice but I would like most a more "rebol" solution. |
Endo 18-Jan-2012 [4107] | Scientific notation of numbers and automatic reformating time! values (00:00:00 --> 0:00) are the most annoying parts of REBOL for me. It would be more useful if it doesn't happen when FORMing. |
Evgeniy Philippov 23-Jan-2012 [4108] | Is there a possibility for cyrillic/Russian at Rebol/View except for pixelart drawing the characters? |
Kaj 23-Jan-2012 [4109x2] | In R3/View, but it's currently buggy and limited to Windows and Amiga |
Since you'd have to switch languages anyway, you could also consider Red with the GTK+ binding | |
Evgeniy Philippov 23-Jan-2012 [4111:last] | Uh. In Red, everything is possible with any bindings |
older | first |