Skip to content

Commit

Permalink
Atualizando fórmula
Browse files Browse the repository at this point in the history
  • Loading branch information
gersonfs committed Apr 8, 2021
1 parent 7d13a92 commit ee67e04
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 26 deletions.
98 changes: 73 additions & 25 deletions igpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
1999 2 0,03610000
1999 3 0,02830000
1999 4 0,00710000
1999 5 0,00000000
1999 5 -0,00290000
1999 6 0,00360000
1999 7 0,01550000
1999 8 0,01560000
Expand All @@ -148,14 +148,14 @@
2001 4 0,01000000
2001 5 0,00860000
2001 6 0,00980000
2001 7 0,00000000
2001 7 0,01480000
2001 8 0,01380000
2001 9 0,00310000
2001 10 0,01180000
2001 11 0,01100000
2001 12 0,00220000
2002 1 0,00360000
2002 2 0,00000000
2002 2 0,00060000
2002 3 0,00090000
2002 4 0,00560000
2002 5 0,00830000
Expand All @@ -170,9 +170,9 @@
2003 2 0,02280000
2003 3 0,01530000
2003 4 0,00920000
2003 5 0,00000000
2003 6 0,00000000
2003 7 0,00000000
2003 5 -0,00260000
2003 6 -0,01000000
2003 7 -0,00420000
2003 8 0,00380000
2003 9 0,01180000
2003 10 0,00380000
Expand All @@ -194,18 +194,18 @@
2005 2 0,00300000
2005 3 0,00850000
2005 4 0,00860000
2005 5 0,00000000
2005 6 0,00000000
2005 7 0,00000000
2005 8 0,00000000
2005 5 -0,00220000
2005 6 -0,00440000
2005 7 -0,00340000
2005 8 -0,00650000
2005 9 -0,00530000
2005 10 0,00600000
2005 11 0,00400000
2005 12 0,00000000
2005 12 -0,00010000
2006 1 0,00920000
2006 2 0,00010000
2006 3 0,00000000
2006 4 0,00000000
2006 3 -0,00230000
2006 4 -0,00420000
2006 5 0,00380000
2006 6 0,00750000
2006 7 0,00180000
Expand Down Expand Up @@ -241,7 +241,7 @@
2009 1 -0,00440000
2009 2 0,00260000
2009 3 -0,00740000
2009 4 0,00000000
2009 4 -0,00150000
2009 5 -0,00070000
2009 6 -0,00100000
2009 7 -0,00430000
Expand All @@ -261,7 +261,7 @@
2010 9 0,01150000
2010 10 0,01010000
2010 11 0,01450000
2010 12 0,00000000
2010 12 0,00690000
2011 1 0,00790000
2011 2 0,01000000
2011 3 0,00620000
Expand Down Expand Up @@ -324,13 +324,61 @@
2015 12 0,00490000
2016 1 0,01140000
2016 2 0,01290000
2016 3 0,00000000
2016 4 0,00000000
2016 5 0,00000000
2016 6 0,00000000
2016 7 0,00000000
2016 8 0,00000000
2016 9 0,00000000
2016 10 0,00000000
2016 11 0,00000000
2016 12 0,00000000
2016 3 0,00510000
2016 4 0,00330000
2016 5 0,00820000
2016 6 0,01690000
2016 7 0,00180000
2016 8 0,00150000
2016 9 0,00200000
2016 10 0,00160000
2016 11 -0,00030000
2016 12 0,00540000
2017 1 0,00640000
2017 2 0,00080000
2017 3 0,00010000
2017 4 -0,01100000
2017 5 -0,00930000
2017 6 -0,00670000
2017 7 -0,00720000
2017 8 0,00100000
2017 9 0,00470000
2017 10 0,00200000
2017 11 0,00520000
2017 12 0,00890000
2018 1 0,00760000
2018 2 0,00070000
2018 3 0,00640000
2018 4 0,00570000
2018 5 0,01380000
2018 6 0,01870000
2018 7 0,00510000
2018 8 0,00700000
2018 9 0,01520000
2018 10 0,00890000
2018 11 -0,00490000
2018 12 -0,01080000
2019 1 0,00010000
2019 2 0,00880000
2019 3 0,01260000
2019 4 0,00920000
2019 5 0,00450000
2019 6 0,00800000
2019 7 0,00400000
2019 8 -0,00670000
2019 9 -0,00010000
2019 10 0,00680000
2019 11 0,00300000
2019 12 0,02090000
2020 1 0,00480000
2020 2 -0,00040000
2020 3 0,01240000
2020 4 0,00800000
2020 5 0,00280000
2020 6 0,01560000
2020 7 0,02230000
2020 8 0,02740000
2020 9 0,04340000
2020 10 0,00000000
2020 11 0,00000000
2020 12 0,00000000
2 changes: 1 addition & 1 deletion igpm.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
unset($dados[0]);
foreach($dados as $dado) {
for($i = 1; $i <= 12; $i++) {
$taxa = str_replace(',', '.', $dado[$i]) * 1;
$taxa = ((float)str_replace(',', '.', $dado[$i])) * 1;
$linhas .= $dado[0] . "\t" . $i . "\t" . number_format(round($taxa / 100, 8), 8, ",", "") . "\n";
}
}
Expand Down

0 comments on commit ee67e04

Please sign in to comment.