|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
![]() |
#1 |
Made in Japan
Top Poster
Registrato: 04-07-2001
Messaggi: 4.461
![]() |
[PHP] Parte intera di una divisione
Faccio così: $risultato = Math.floor($dato_dal_db/3) print $risultato; supponendo che il dato dal db sia 2 mi stampa: Math0 Provo così: $risultato = (int)Math.floor($dato_dal_db/3) print $risultato; stampa 00 con la funzione is_int() ho scoperto che in entrambi i casi $risultato non è un int, come faccio a farlo diventare un intero? Neanche il cast c'è riuscito! |
![]() |
![]() |
![]() |
#2 |
Made in Japan
Top Poster
Registrato: 04-07-2001
Messaggi: 4.461
![]() |
Problema risolto con intval()
|
![]() |
![]() |
![]() |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
|
|
![]() |
||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
ScreenSaver che non parte | Mass8 | Windows 7/Vista/XP/ 2003 | 0 | 26-01-2006 13.21.14 |
NON PARTE XP HOME | hardwarere | Windows 7/Vista/XP/ 2003 | 3 | 01-01-2006 19.18.00 |
Il Pc non parte | lorenzo84 | Hardware e Overclock | 3 | 16-11-2005 22.17.35 |
Nasa - Shuttle: Parte o non parte sta carretta? | Giorgius | Chiacchiere in libertà | 38 | 20-07-2005 16.25.28 |
Virgilio ... in parte! | Fantomas | Internet e Reti locali | 9 | 28-05-2004 18.42.32 |