MATLAB: Doesn’t Matlab’s answer to factorial(100) equal Wolfram Alpha’s 100!

computation errorfactorial error

When computing:
>> a = sprintf('%f',factorial(100))
a =
'93326215443944102000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000'
However the number above does not equal 100!
why is this and how do I fix it?

Best Answer

factorial(sym(100))
Related Question