Posts by Wesley Kühn • 52 points
4 posts
-
1
votes2
answers710
viewsA: How to know how many characters there are after the comma c#
Try it like this: //String alvo string palavra = "3,5888666454"; //Pega onde está a virgula int virgulaIndice = palavra.IndexOf(','); //Divide e pega apenas os chars[] depois da virgula string…
-
0
votes2
answers3028
viewsA: Navbar Vertical
I noticed that you are using Bootstrap, it has a class called sidebar that can be placed in a <nav> do some tests to see if putting the sidebar class or similar in your navbar it looks like…
-
0
votes3
answers933
viewsA: Treat error return in codeigniter
Try the following to see if you succeeded in the model or not: if(!$sql_exclusao){ tratamento da excessão... } Or something like that. Where $sql_delete will be bool whether or not the query worked.…
-
1
votes2
answers31
viewsA: Problems with number format - Adding characters
We’ll go in stages. 1º convert an integer to float: $valor = sprintf("%.2f", 5300000); 2º put the number_format: $valor_f = number_format($valor, 2, ",", "."); Note that this way, you can replace…
phpanswered Wesley Kühn 52