SyntaxBomb - Indie Coders

General Category => General Discussion => Topic started by: RemiD on February 02, 2024, 11:09:08

Title: what this value 1.343646e+111 means in number ?
Post by: RemiD on February 02, 2024, 11:09:08
hello,

can somebody explain what this value 1.343646e+111 means in number. (please)

this is the result of 62^62

thanks,
Title: Re: what this value 1.343646e+111 means in number ?
Post by: dawlane on February 02, 2024, 11:35:31
1.343646 × 10111
If my math is still up to scratch 1343646 followed by 111 zeros.
You move the decimal point to the right with a plus symbol, or left with a minus symbol.
Title: Re: what this value 1.343646e+111 means in number ?
Post by: Midimaster on February 02, 2024, 14:03:39
of course it is a 1343646 followed by 105 zeros!

Because after the decimal point there are written 6 digits, you need to substract them from 111

111-6 =105

1e+111 = 1 x 10111 is a 1 followed by 111 zeros

and...
1.0e+111  = 1.0 x 10111 is a 10 followed by 110 zeros

and so..
1.34e+111 = 1.34 x 10111 is a 134 followed by 109 zeros



1.6e+1 = 1.6 x 101 is a 16

1.6e+2 = 1.6 x 102 is a 160

1.6e+0 = 1.6 x 100 is a 1.6

1.6e-1 = 1.6 x 10-1 is a 0.16
Title: Re: what this value 1.343646e+111 means in number ?
Post by: angros47 on February 02, 2024, 18:27:48
Quote from: RemiD on February 02, 2024, 11:09:08this is the result of 62^62
Which language were you using? In C/C++, for example, the "^" operator means bitwise XOR, while in BASIC it means "power to"
Title: Re: what this value 1.343646e+111 means in number ?
Post by: RemiD on February 02, 2024, 19:05:43
Quote from: Midimaster on February 02, 2024, 14:03:39of course it is a 1343646 followed by 105 zeros!

Because after the decimal point there are written 6 digits, you need to substract them from 111

111-6 =105

ok, i understand.  :)

thanks
Title: Re: what this value 1.343646e+111 means in number ?
Post by: RemiD on February 02, 2024, 19:11:59
Quote from: angros47 on February 02, 2024, 18:27:48
Quote from: RemiD on February 02, 2024, 11:09:08this is the result of 62^62
Which language were you using? In C/C++, for example, the "^" operator means bitwise XOR, while in BASIC it means "power to"

yes i wanted to calculate a 'power of'

this was to calculate the number of possible passwords if all az AZ 09 characters are used
26+26+10 = 62
62^62 = 1.343646e+111 = 1343646000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;D

an interesting website to check if your password is easy to find (with brute force ) : 
https://www.security.org/how-secure-is-my-password/
Title: Re: what this value 1.343646e+111 means in number ?
Post by: mainsworthy on February 02, 2024, 23:07:16
your all forgetting that your asuming its base 10, could be base 16 or something , sorry just like jigging things up :)
Title: Re: what this value 1.343646e+111 means in number ?
Post by: DaiHard on February 04, 2024, 14:58:22
I think that isn't quite right - if you want a 62 character password which uses all 62 available characters, then the number available for each position goes down by one each time (because some have already been used), so the total number is 62! ( 62 factorial, or 62 x 61 x 60 x ... 2 x 1), which is still an astronomically large number (about 3 x 10^85), but much much smaller than 62^62!
Title: Re: what this value 1.343646e+111 means in number ?
Post by: col on February 05, 2024, 01:43:09
@DaiHard,
RemiD is using this for passwords, which normally allows repeated characters - in this case from a choice of 62.
And yes, you're right that the factorial is only if each character can be used once, but there's no real reason for that restriction.
Title: Re: what this value 1.343646e+111 means in number ?
Post by: Matty on February 05, 2024, 14:24:33
And now watch what happens with your brute force technique if the server with the login account enforces a few second delay as a security measure between each login attempt....gonna take a lot longer than what you expect.....oh...and locks the account if there are too many wrong attempts requiring a direct person-to-person contact to unlock again should that trigger be switched.
Title: Re: what this value 1.343646e+111 means in number ?
Post by: mainsworthy on February 05, 2024, 16:56:58
if i was the adminstrator, after a fail is triggered , I would root the login to a dummy and keep the logger busy heheheeee
Title: Re: what this value 1.343646e+111 means in number ?
Post by: mainsworthy on February 05, 2024, 16:58:36
maybe some fake login then logged out to frustrate them heheeee 
Title: Re: what this value 1.343646e+111 means in number ?
Post by: mainsworthy on February 05, 2024, 17:02:40
I would have a lot of fun as admin :) 
Title: Re: what this value 1.343646e+111 means in number ?
Post by: RemiD on March 16, 2024, 09:24:13
hi :)

i have encountered such a weird value again.

but in this case the symbol at the end is negative ( - minus) :
5.26316e-004

the result of 0.10 / 190

if i understand correctly, this would equal to :
0.000526316

0.000526316 * 190 = 0.1

correct ?

yes it seems... ;D
Title: Re: what this value 1.343646e+111 means in number ?
Post by: DaiHard on March 17, 2024, 08:32:55
Yes. A negative exponent means "divide by 10 this number of times" rather than "multiply by ten this number of times.So
1e2 = 1 x 10 x 10 = 100
1e1 = 1 x 10 = 10
1e0 = 1
1E-1 = 1/10 = 0.1
1e-2 = (1 /10) / 10 = 1 / (10 x 10) =0.01