File Coverage

lib/Spreadsheet/Engine/Function/ATAN.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::ATAN;
2              
3 28     28   149 use strict;
  28         65  
  28         1288  
4 28     28   146 use warnings;
  28         52  
  28         760  
5              
6 28     28   264 use base 'Spreadsheet::Engine::Fn::math';
  28         65  
  28         4051  
7              
8             sub calculate {
9 82     82 1 2498 my ($self, $value) = @_;
10 82         2037 return atan2($value, 1);
11             }
12              
13             1;
14              
15             __END__