[Blackpool] Ripon road open 10-12 Saturday 6th
Arthur Garlick
arthur_garlick at hotmail.com
Fri Dec 5 13:06:12 UTC 2014
The answers can be got to by looking at the links below :)
var x = 0.2 + 0.1;
here: http://www.w3schools.com/js/tryit.asp?filename=tryjs_inaccurate2
18 == 17.999999999999999
here: http://www.w3schools.com/js/tryit.asp?filename=tryjs_comparison
(answer changes depending on how many decimal places you go with the 9s)
When I mentioned this, my friend was having problems with rounding. Here's an additional question (I've had a long week in the office, this is just supposed to be Friday fun):
In VB you can convert to an Integer using CInt, so CInt(123.4) will round it to an Integer ( = 123 ).
But what are the values of x and y set to after this bit of VB? (Same with Delphi and many other languages)
x = CInt(28.5)
y = CInt(29.5)
regards
Arthur
> Date: Fri, 5 Dec 2014 12:39:16 +0000
> From: jmsp.1983 at gmail.com
> CC: blackpool at mailman.lug.org.uk
> Subject: Re: [Blackpool] Ripon road open 10-12 Saturday 6th
>
> Gah. I'm going to take a stab at*:
>
> 1. 0.
> 2. True
>
> *I can just about explain and set a variable in Python.
>
>
>
>
> Best wishes,
> James
>
> On 5 December 2014 at 12:20, Arthur Garlick <arthur_garlick at hotmail.com>
> wrote:
>
> > Hey Andy, it will be great to meet you.
> >
> >
> >
> > Just some Friday fun:
> >
> > I may have branded myself as a little cynical if not sneering of some
> > languages (cough... Python)
> >
> > This week I've had to go a bit deeper with JavaScript than I've done in
> > the past.
> >
> > <Marvin the Paranoid Android voice> I didn't enjoy it </Marvin the
> > Paranoid Android voice> .
> >
> >
> >
> > Rhetorical quiz, smile if you know, because I found out the hard way this
> > week and I wasn't smiling:
> >
> > According to JavaScript what will be the value of x after this?:
> >
> > var x = 0.2 + 0.1;
> >
> >
> > According to JavaScript, will this resolve to true or false?:
> >
> > 18 == 17.999999999999999
> >
> >
> >
> > If you haven't seen this it's worth a look:
> >
> > https://www.destroyallsoftware.com/talks/wat
> >
> >
> >
> > See you tomorrow
> >
> > Arthur
> >
> > > Date: Thu, 4 Dec 2014 15:59:52 +0000
> > > From: ajm at ip-ether.net
> > > To: blackpool at mailman.lug.org.uk
> > > Subject: Re: [Blackpool] Ripon road open 10-12 Saturday 6th
> > >
> > > On 04/12/2014 15:09, MJ Hewitt wrote:
> > > > Hi folks -
> > > >
> > > > I will be open on Saturday 6th.
> > >
> > > Hello Folks,
> > >
> > > I just subscribed to this list after a brief chat with Mike the other
> > > day, and I'm planning to come to the meet on Saturday.
> > >
> > > I'm returning to Linux after a long period of inactivity, and need to
> > > get some pointers from folk with more current experience. I've been away
> > > from the industry for a few years now (I was a University Network
> > > Manager) so what I do recollect is mostly old hat. My first Linux
> > > experience was installing Slackware 1.0 in '93, but most of my Unix
> > > experience (such that it is) was on Solaris.
> > >
> > > I have a couple of initial tasks. Firstly I need to build myself a new
> > > system to serve as my main day-to-day 'desktop' productivity computer.
> > > Secondly, I need to re-install an old low-power home server appliance
> > > (Cobalt Qube 3) which is quite an interesting little beastie.
> > >
> > > I have to make some decisions and I'm hoping some contact with fellow
> > > enthusiasts may help. eg:
> > >
> > > Package management vs compile from source
> > > Pros/cons of various distros
> > > Pros/cons for various window managers / desktop environments
> > > Lifecycle issues (really I want a long-term supported system)
> > >
> > > For the Qube, I have some challenges, as there's no longer an
> > > off-the-shelf mainstream kernel that will run this box. However the box
> > > itself is (IMO) worth the effort to keep going. Patches are available
> > > for kernels up to 3.4, and my best bet seems to be to set up a
> > > cross-compiling system to build the software for it.
> > >
> > > See you Saturday !
> > >
> > > Andy McClements
> > >
> > > _______________________________________________
> > > Blackpool mailing list
> > > Blackpool at mailman.lug.org.uk
> > > https://mailman.lug.org.uk/mailman/listinfo/blackpool
> >
> > _______________________________________________
> > Blackpool mailing list
> > Blackpool at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/blackpool
> >
> _______________________________________________
> Blackpool mailing list
> Blackpool at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/blackpool
More information about the Blackpool
mailing list