This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x1 = (float) "111111111111111111111111111111111111111111111111111111112"; | |
$x2 = (float) "111111111111111111111111111111111111111111111111111111111"; | |
var_dump($x1); | |
var_dump($x2); | |
if($x1 == $x2){ | |
echo "iguais"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function eratostenes_sieve($number) { | |
$num_max = floor(sqrt($number)); | |
$list = range(2, $number); | |
for($x = 2; $x <= $num_max; $x++) { | |
foreach($list as $_k => $_val) { | |
if($_val != $x and $_val % $x == 0) { | |
unset($list[$_k]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class NoticiaConteudoController extends RestritoController { | |
function dependency() { | |
return Array( | |
'noticia' => '@NoticiaConteudoModel', | |
'autor' => '@AutorModel', | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <conio.h> | |
#include <io.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Integrantes: | |
* - Anderson Fraga | |
* - Teu Solano | |
* - Thiago Garcia | |
* |
NewerOlder