Test Failed
Pull Request — master (#119)
by Jordan
06:20
created

DecimalLogBench::benchExpFloat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Samsara\Fermat\Values;
4
5
use Samsara\Fermat\Types\Decimal;
6
7
class DecimalLogBench
8
{
9
10
    public function benchLn()
11
    {
12
        $ten = new ImmutableDecimal(10);
13
        $ten->ln();
14
    }
15
16
    public function benchLog10()
17
    {
18
        $ten = new ImmutableDecimal(50);
19
        $ten->log10();
20
    }
21
22
    public function benchExp()
23
    {
24
        $ten = new ImmutableDecimal(10);
25
        $ten->exp();
26
    }
27
28
    public function benchExpFloat()
29
    {
30
        $ten = new ImmutableDecimal('12.5');
31
        $ten->exp();
32
    }
33
34
}