| 663 | // ------------------------------------------------ |
| 664 | |
| 665 | double Int::ToDouble() { |
| 666 | |
| 667 | double base = 1.0; |
| 668 | double sum = 0; |
| 669 | double pw32 = pow(2.0,32.0); |
| 670 | for(int i=0;i<NB32BLOCK;i++) { |
| 671 | sum += (double)(bits[i]) * base; |
| 672 | base *= pw32; |
| 673 | } |
| 674 | |
| 675 | return sum; |
| 676 | |
| 677 | } |
| 678 | |
| 679 | // ------------------------------------------------ |
| 680 |
nothing calls this directly
no outgoing calls
no test coverage detected