This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 4 matches

by aRTiST
Sun Apr 19, 2009 5:25 am
Forum: Scripting Help
Topic: Problem with formating units
Replies: 3
Views: 3395

hm

I tried with ur version, but now ill get an error :

Code: Select all

floating-point value too large to represent
:/
by aRTiST
Sat Apr 18, 2009 1:58 pm
Forum: Scripting Help
Topic: Problem with formating units
Replies: 3
Views: 3395

Problem with formating units

proc format_1024_units {value} { set len [string length $value] if {$value < 1024} { return [format "%s B" $value] } else { set unit [expr {($len - 1) / 3}] return [format "%.1f %s" [expr {$value / pow(1024,$unit)}] [lindex [list B KB MB GB TB PB EB ZB YB] $unit]] } } But the re...
by aRTiST
Fri Apr 17, 2009 12:02 pm
Forum: Scripting Help
Topic: [SOLVED] missing close parenthesis
Replies: 2
Views: 3003

Thanks a lot :D

First of all THX :D

The hint leads me the right way.

There was an "Sign" in that var That "" wouldnt be stripped by "set amount [stripcodes abcgru $amount]"

Now i have to remove that crap, not sure how but perhaps ill find a way.

thx nml375
by aRTiST
Fri Apr 17, 2009 11:09 am
Forum: Scripting Help
Topic: [SOLVED] missing close parenthesis
Replies: 2
Views: 3003

[SOLVED] missing close parenthesis

proc do:format {amount} { set amount [stripcodes abcgru $amount] if {[string match "*KB." $amount]} { set amount [string map {"KB." ""} $amount] set amount [expr double($amount)*1024] } elseif {[string match "*MB." $amount]} { set amount [string map {"MB...