MySpace Interview Question

What's 5/2 in MySQL ?

Interview Answers

Anonymous

Apr 28, 2009

2.5 is wrong according to MySpace

Anonymous

Mar 13, 2010

may they expect it to be 2.5000 ?

Anonymous

Jul 24, 2011

5/2 = 2 it will assume integer division

Anonymous

Jan 9, 2015

You have 5 digits of which 2 are decimals Ex: 123.45