Fixed pont library for 64 bit precision in c++

Hello, can anyone refer me a good fixed point math library of 64 bit precision doing some basic arthimetic operations like addition, subtraction, multiplication, division and some trignometric functions like sin, cos, tan and sqrt.

so please can someone refer a full implemented c++ library which is dealing 64 bit precision.

thanks in advance
Is my question clear / understandable?
You need a bignum library. Students tend to be asked to write one and there was a bignum competition on this forum some time back.

Anyway, here's one.
http://gmplib.org/
If your compiler supports C++11, then 64-bit types should be built in to the language. If you want larger types though, you will have to use a bignum library as kbw said above.
@kbw thank you, but i need some source code to know how it is implement, i googled some source code but i just need some expert programmers to refer the best source code to implement it.
1
2
3
4
5
6
7
8
9
#include <iostream>
#include <cstdint>
#include <limits>

int main()
{
    std::uint64_t bigint = std::numeric_limits<std::uint64_t>::max();
    std::cout << bigint << std::endl;
}
http://ideone.com/XX9R9n
Topic archived. No new replies allowed.