Skip to main content

Reading my life

WSQ14 - Calculate e

1 min read

Hey everybody! In this time, we wrote a code to calculate Euler's constant or e number. That part was simple, the problem came when we need to stop the programm when we have the precision (decimal point numbers) that we required. To acomplishied that, we use a function called floor which we take from here

http://stackoverflow.com/questions/11208971/round-a-float-to-a-given-precision/11209099#11209099

Anyway, here is the link to my code. Enjoy it!

https://github.com/juanpsantana/WSQs/blob/master/WSQ14.cpp