r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

Gregg
16-Jan-2012
[4101]
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