Search found 947 matches

by einstein1969
27 May 2024 17:22
Forum: DOS Batch Forum
Topic: (nearly) ieee 754 floating point single precisition
Replies: 47
Views: 37184

Re: (nearly) ieee 754 floating point single precisition

ok, I was going crazy to figure out that +1.

These days I've had to slow down because my only PC is having problems and isn't working well.
by einstein1969
25 May 2024 07:48
Forum: DOS Batch Forum
Topic: (nearly) ieee 754 floating point single precisition
Replies: 47
Views: 37184

Re: (nearly) ieee 754 floating point single precisition

thanks. I got to the point "divide h.ighlow by 2 (updating the e_2 value) until 1 <= h.ighlow < 2". set "string= 8 4 2 " for %%a in ("!high:~0,1!") do @for %%b in (!string:~-%%~a!) do @( >nul set /A "c=(high&1)+1" set "low=!c!!low!" >nul set /A "high>>=1", "low=(low>>1)-50000000", "e_2+=1" set "low=...
by einstein1969
24 May 2024 09:11
Forum: DOS Batch Forum
Topic: (nearly) ieee 754 floating point single precisition
Replies: 47
Views: 37184

Re: (nearly) ieee 754 floating point single precisition

Thanks a lot. Yes, in fact, the code I am reading is very difficult and it will take me a long time. You can give me an example with a "number" because it's not yet clear to me: "If i Remember Right, then the basic idea is to start with a number string in scientific notation" Example ..... "Transfor...
by einstein1969
23 May 2024 06:50
Forum: DOS Batch Forum
Topic: (nearly) ieee 754 floating point single precisition
Replies: 47
Views: 37184

Re: (nearly) ieee 754 floating point single precisition

This is the very simplified version I'm working on: :str2float_very_simple string var_float set "string=%~1" set "string= !string: =!" rem for now I only consider numbers without epart set "ePart=0" set "fPart=!string:*.=!" if "!string!" == "!fPart!" ( set "fPart=0" ) else for %%a in ("!fPart!") do ...
by einstein1969
23 May 2024 06:40
Forum: DOS Batch Forum
Topic: (nearly) ieee 754 floating point single precisition
Replies: 47
Views: 37184

Re: (nearly) ieee 754 floating point single precisition

Hi penpen, After a long time I'm studying this project of yours. I imagine you've forgotten a bit how it works by now. But if you want to help me understand it at least a little, I will be truly grateful. I'm starting to study how what you did works, also getting help from what I find on the web. Bu...
by einstein1969
19 May 2024 07:12
Forum: DOS Batch Forum
Topic: Dinosaur Game from Chrome in Batch - Remake
Replies: 4
Views: 979

Re: Dinosaur Game from Chrome in Batch - Remake

I like.

Nice graphics, good performance, good gameplay.

Improvements suggested to me by my head:

Automatic delay calculation, or delay based on the "time" variable. Each PC has different performances so it would be preferable to work on the past time.

space and time! Einstein tells you!
by einstein1969
22 Nov 2023 12:33
Forum: DOS Batch Forum
Topic: Problem passing parameters by ref in for /R
Replies: 3
Views: 16764

Re: Problem passing parameters by ref in for /R

Thank you both. I hadn't gotten there.
by einstein1969
22 Nov 2023 05:10
Forum: DOS Batch Forum
Topic: Problem passing parameters by ref in for /R
Replies: 3
Views: 16764

Problem passing parameters by ref in for /R

Hi, I have this problem The first procedure create_folder0 with parameters by value work The second create_folder1 with name of variable don't work It simple but i don't know where I worng :( ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @echo off setlocal EnableDel...
by einstein1969
06 Nov 2023 15:38
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

Thanks Saso I will keep it present when I will be able to produce a greater amount of data.
by einstein1969
30 Oct 2023 04:00
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

Now I think I understand what you meant.

I'm looking at the second link but it doesn't seem right to me.

In reality the compressed data was without encoding and to bring it into the batch file I encoded it in base 64. Did I understand correctly?
by einstein1969
27 Oct 2023 11:02
Forum: DOS Batch Forum
Topic: new functions: :chr, :asc, :asciiMap
Replies: 35
Views: 159900

Re: new functions: :chr, :asc, :asciiMap

look if this is valid...
by einstein1969
27 Oct 2023 10:00
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

Hello einstein! I hope you're doing well. Amazing work as always. Seems to perform really well on my low grade acer laptop. Thanks for sharing! P.s I haven't forgotten the 3D rose you wanted to do. Though I still have no idea how to do it, I still think it would be very fun. Cheers! Hi Icarus, the ...
by einstein1969
27 Oct 2023 09:28
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

I have found the study that write of this method :

https://www.researchgate.net/publicatio ... sformation

this document explain the algorithm used!
.
by einstein1969
27 Oct 2023 09:23
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

I tried to zip 128 byte but the out.zip is 280 bytes.
by einstein1969
27 Oct 2023 09:20
Forum: DOS Batch Forum
Topic: Another amazing porting...
Replies: 14
Views: 91466

Re: Another amazing porting...

@miskox I didn't understand what you wrote The data are 128 bytes and become 172 in coding based on 64. I don't think those 128 bytes can still be compressed. Maybe yes but I think that the overhead of a compression have the 128bytes exceed. But I did not do evidence. Perhaps with a compression with...