Did you try the identity
There is a distinction between knowing the decimal expansion of a number, and its exact value. For example, your integral does have the value 0.785398, but that doesn't really mean anything mathematically, because its an approximation. The exact value in this case is actually . You need to get the exact value.
One way to do that is using the identity I copied above, and then use the anti-derivative with the fundamental theorem of calculus to find the definite integral. You can use u-substitution to find the anti derivative, but it can be done otherwise:
So
evaluated from -Pi/4 to Pi/4