Search found 1037 matches

by Bugala
Wed May 25, 2022 8:44 am
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 5
Views: 78

Re: ArraytoStr how does it work?

That's surprising, I always thought using " or ' would both be the same.

So can someone explain what exactly is the difference between using " or ' technically speaking?
by Bugala
Wed May 25, 2022 8:37 am
Forum: Newbie questions
Topic: Is there command to do reverse of Chr()?
Replies: 3
Views: 40

Re: Is there command to do reverse of Chr()?

Thanks! Didn't realize that one when I was looking through the String Library.
by Bugala
Tue May 24, 2022 7:57 pm
Forum: Newbie questions
Topic: Is there command to do reverse of Chr()?
Replies: 3
Views: 40

Is there command to do reverse of Chr()?

I can do: Var = 65 debugprint(chr(var)) and it will print A However, I would need the reverse of this, is there something like: Var = "A" Debugprint(ReverseofChr(var) Which would then return 65. Does that exist? I can only see Val() command that looks like it, but that looks like it makes a whole st...
by Bugala
Tue May 24, 2022 6:30 pm
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 5
Views: 78

Re: ArraytoStr how does it work?

Yeah, that what it debugprints here too, problem is, it doesnt print the string. There are two debugs in that code. First one is to debugprint everything inside t_sum, which is the: 1 2 2 3 0 1 Then I am trying to use ArraytoStr for that t_sum, to make it into a string. What I expect to happen with ...
by Bugala
Tue May 24, 2022 2:00 pm
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 5
Views: 78

ArraytoStr how does it work?

I have here this piece of code:

Code: Select all

t_sum = {"1", "2", "3"}

ForEach(t_sum, DebugPrint)
string = ArrayToStr(t_sum)
DebugPrint(string)
And as can be seen, string is empty.

I am trying to make a string that would be numbers, like "0.123" but cant I use ArrayToStr to do that?
by Bugala
Mon May 23, 2022 7:59 am
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 348

Re: Minus from Table Item fails, Bug or feature?

Okay, this is a partial fix, but still not completely working. When using "%.5g" it does result in the right answer, and even when using "%.9g" (which is what I need to use) it still works fine, but using for example "%.13g", it happens to result in 0.6234299999996, since the 14th digit is 1, and ro...
by Bugala
Fri May 20, 2022 2:05 pm
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 348

Re: Minus from Table Item fails, Bug or feature?

So is there a way to get around it?

That how can I make that calculation and receive the right answer?
by Bugala
Mon May 16, 2022 5:01 pm
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 348

Re: Minus from Table Item fails, Bug or feature?

I can't confirm this yet, but I am suspecting this bug might be reflecting elsewhere too. It might be affecting one of Adding, Multiplying, or Dividing. My guess is that it is not affecting Adding, since I have enough Adding calculations that do work as supposed. In addition, I am also suspecting th...
by Bugala
Mon May 16, 2022 1:10 pm
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 348

Re: Minus from Table Item fails, Bug or feature?

Actually, just noticed that this specific number combination fails every time, so here is the new minimum code amount

Code: Select all

sum = 5001.72343 - 5001.1
DebugPrint("sum: "..sum)
results in:

Code: Select all

sum: 0.62342999999964
by Bugala
Mon May 16, 2022 12:46 pm
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 348

Re: Minus from Table Item fails, Bug or feature?

was able to make minimum code amount to trigger the bug. Hollywood 9.1 Windows 10. Can someone else confirm they get the same result as me: CoinHoldingPlaces = { ["southexchange"] = { ["bigo"] = { plus = 300, neg = 0 }, ["sc"] = { plus = 145880 , neg = 145879.99999903 }, ["xbtx"] = { plus = 5001.723...