| View previous topic :: View next topic |
| Author |
Message |
devAnd Newbie cheater
Reputation: 0
Joined: 22 Jun 2020 Posts: 13 Location: C#, java and ASM
|
Posted: Fri Aug 13, 2021 1:21 am Post subject: What is this "E" on my float value |
|
|
Hi guys!
i would like to know what is this E on my float value:
i.imgur. com/S6CM8Cq.png
|
|
| Back to top |
|
 |
Birdi Expert Cheater
Reputation: 0
Joined: 08 Jun 2020 Posts: 124 Location: Migrating
|
Posted: Fri Aug 13, 2021 1:42 am Post subject: |
|
|
Literal: Exponent
2.748099632E-7
is the same as 2.748099632⁻⁷
Most likely found in Doubles, as they're very large numbers.
Edit: DB is more correct here lol
Last edited by Birdi on Fri Aug 13, 2021 3:55 am; edited 1 time in total |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25835 Location: The netherlands
|
Posted: Fri Aug 13, 2021 2:46 am Post subject: |
|
|
E means the number of digits the comma has to shift to get the actual value
2.748099632E-7 = 0.0000002748099632
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
devAnd Newbie cheater
Reputation: 0
Joined: 22 Jun 2020 Posts: 13 Location: C#, java and ASM
|
Posted: Fri Aug 13, 2021 12:29 pm Post subject: |
|
|
If I had to pass this value into a register, what would be the ideal way? for example:
| Code: |
push eax
mov eax, (float)2.748099632E-7
pop eax
|
or have any correct form to do this? that way it's not working very well for me.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4719
|
Posted: Fri Aug 13, 2021 1:33 pm Post subject: |
|
|
If you're just moving around data, the general purpose registers are fine. That instruction assembles correctly for me. You might have trouble with doubles since they require 8 bytes of memory.
If you want to actually do something (add, subtract, multiply...) with floating point numbers, use SSE instructions with xmm registers.
| Code: | alloc(newmem,1024)
alloc(value,4)
newmem:
movss xmm0,[value]
addss xmm0,[rdi]
movss [rdi],xmm0
jmp return
value:
dd (float)4.0 |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
devAnd Newbie cheater
Reputation: 0
Joined: 22 Jun 2020 Posts: 13 Location: C#, java and ASM
|
Posted: Sat Aug 14, 2021 6:01 pm Post subject: |
|
|
| thanks so much guys !
|
|
| Back to top |
|
 |
|