Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
evan_kurowski
Specialist
Specialist

Help completing this sequence

Hello All,

I diligently and dutifully trying create conversion table for fractions, even though there seem to be plenty of other websites out there that claim they can do this easy, but I'm hoping to create my own for help of math.  Why embrace math, is hard to explain, because functions linear and non-reciprocal.  However feedback has been incomprehensible... and I don't understand the pattern.

There seem to be a combination of binary ascii.  Can anyone help me complete this table to perform fractions out to 32 rows to 2^-32, so that I can get conversion table for these fractions?  Maybe the table doesn't know what's good for calculating and will romance to the easy solution that gives answer good to hear?  Regardless if beak is moist, not can understand but is clear, table has diminishing rows. Can you help me take to 32 rows?

20140814_Completing_a_sequence.png

1 Solution

Accepted Solutions
rbecher
MVP
MVP

Hi Evan,

my first attempt was something like this:

Fractions:

LOAD

    pow(2,RecNo() * -1) as val,

    224 - ((RecNo() -1) * 16) as asc,

    chr(224 - ((RecNo() -1) * 16)) as chr

AutoGenerate(32);

The result for val seems to be ok but asc and chr will not work since (I guess) you will need at least a 4 Byte representation.

- Ralf

Astrato.io Head of R&D

View solution in original post

4 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Evan,

Can you attach the sample script you created till now?

Regards.

Jagan.

evan_kurowski
Specialist
Specialist
Author

Maybe start from here?  http://www.asciitablechart.com/

rbecher
MVP
MVP

Hi Evan,

my first attempt was something like this:

Fractions:

LOAD

    pow(2,RecNo() * -1) as val,

    224 - ((RecNo() -1) * 16) as asc,

    chr(224 - ((RecNo() -1) * 16)) as chr

AutoGenerate(32);

The result for val seems to be ok but asc and chr will not work since (I guess) you will need at least a 4 Byte representation.

- Ralf

Astrato.io Head of R&D
evan_kurowski
Specialist
Specialist
Author

Yes, yes, yes...  You've got me on the right track Ralf, I guess once the asc field drops down to zero and wants to head into negative territory and wrap around the Unicode table, I'll have to find a way to "increment my abbacus" and wind it through the top byte again, so I can stay in the front 0-255 chr.

Thank you!