Floating

User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Floating

Post by m!nus »

It seems I'm missing something about that challenge. I tried making it a float with trying different padding, big/little endian and different formats when sending the solution, it just doesn't work :/

Any hints?
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

It's fussy about the length of your answer, so if you don't understand why your answer is rejected then try shorter versions.
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

...and to think all this time I thought it was a steneography challenge...
Last edited by therethinker on Tue Dec 30, 2008 3:56 am, edited 1 time in total.
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

I hate this challenge, i have 2 numbers that seems possible, tried all kinds of lengths, nothing helped. (I have something with 8 and with -5)
rmplpmpl
Posts: 113
Joined: Sun Oct 26, 2008 10:38 am
Location: Germany

Post by rmplpmpl »

m!nus wrote:I hate this challenge, i have 2 numbers that seems possible, tried all kinds of lengths, nothing helped. (I have something with 8 and with -5)
You are on the right track with the 8something
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

takes much time if you have to wait half a minute between your tries. finally found the right length!
wrtlprnft
Posts: 28
Joined: Sun Nov 09, 2008 4:48 pm

Post by wrtlprnft »

Without this thread i'd have expected the answer to be something that can be represented exactly as a decimal, thanks for the help on this somewhat “dirty” challenge.
jgmvxyyafqcn
Posts: 7
Joined: Tue Nov 04, 2008 6:43 pm

Post by jgmvxyyafqcn »

Could someone post the right length? It seems I have tried every possible length but it won't work oO 8.something should be right though?
PeterS
Posts: 24
Joined: Thu Mar 05, 2009 7:17 pm

Post by PeterS »

Ok, I finally got it. Try rounding to the sixth decimal digit.
This is odd since the wikipedia article says, the precision is about 7.225 decimal digits.
jgmvxyyafqcn
Posts: 7
Joined: Tue Nov 04, 2008 6:43 pm

Post by jgmvxyyafqcn »

Thanks! Not one of the best challenges...
Zeta
Posts: 62
Joined: Thu Apr 16, 2009 3:37 pm

Post by Zeta »

PeterS wrote:Ok, I finally got it. Try rounding to the sixth decimal digit.
This is odd since the wikipedia article says, the precision is about 7.225 decimal digits.
Which means, you can use the 7th digit to round *correctly* to 6 digits.
ftfish
Posts: 12
Joined: Thu Aug 20, 2009 1:51 am

Post by ftfish »

PeterS wrote:Ok, I finally got it. Try rounding to the sixth decimal digit.
This is odd since the wikipedia article says, the precision is about 7.225 decimal digits.
you're right, it can hold 7 decimal digits.
but have you forgot the one digit to the left of the point?
DaymItzJack
Posts: 106
Joined: Thu Oct 29, 2009 9:21 pm

Post by DaymItzJack »

Ah this challenge sucks. I had that number at the beginning but I figured it was wrong because it wasn't a number that was recognizable. I thought it was going to be something like the sqrt(2) or gravity constant.
MrTerry
Posts: 34
Joined: Tue Jan 26, 2010 11:44 am

Post by MrTerry »

i m having trouble here.....
x.xxxxxx
with a '.' instead of ',' right?
and 6 digits after the point, or?!

Terry
DamaTeq
Posts: 8
Joined: Tue Feb 01, 2011 7:40 pm

Post by DamaTeq »

this challenge really sucks ... i should have the correct number (8.xxxxxxxxxxxxxxxxxxxx) but it won't take my answer. I tried to round up / down to nearly every digit. I tried to round like wikipedia says (see: IEEE 754). Tried a ',' instead of '.' but nope ... everything is incorrect. That challenge is getting on my nerves. Not only cuz of the fact I have to wait 30 sec to try another value.
Post Reply