Search found 5 matches

by Fzarada
Mon Nov 16, 2009 7:50 am
Forum: Coding Questions
Topic: Random float
Replies: 2
Views: 791

Re: Random float

Thanks Little John, very appreciated.
by Fzarada
Mon Nov 16, 2009 5:38 am
Forum: Coding Questions
Topic: Random float
Replies: 2
Views: 791

Random float

Hi everybody,
How can I generate a random float between 0 and 1 in PB?
by Fzarada
Sun Aug 09, 2009 11:16 am
Forum: Windows
Topic: Inline Assembly Code Question
Replies: 6
Views: 2874

Quote from PB reference manual:
When you reference a label, you must put the prefix 'l_' before the name. This is because PureBasic add a 'l_' before a BASIC label to avoid conflit with internal labels. The label need to be referenced in lowercase when using the inlined ASM.
by Fzarada
Tue Aug 04, 2009 10:24 am
Forum: Coding Questions
Topic: Value conversion
Replies: 7
Views: 1399

Thanks Henrik,
You're right, but i just realize i didn't point at the real problem:
actually the problem is not with Hexadecimal Strings but it is with Hexadecimal numbers.
My example of Hex(10) isn't a good neither the right one cause it returns a string not a number, sorry about that.
To ...
by Fzarada
Tue Aug 04, 2009 12:01 am
Forum: Coding Questions
Topic: Value conversion
Replies: 7
Views: 1399

Is there a fix yet for this problem?
Sometimes is necessary to not have the zeros stripped from a Hex value. working on nibbles level is an example.

So, is there a way to have (let's say) Hex(10) returns 0A instead of just A.
the parametre #PB_Byte should've take care of that at least, but it doesn ...