Mancini83 Posted March 10, 2008 at 03:37 PM Report Share #171802 Posted March 10, 2008 at 03:37 PM boas pessoal,esta função dá.me valores com umas 8 ou 9 casas decimais.eu quero que devolva sem casas decimais.como faço???a funçao é esta x1=(((mySplitRHour1)/12)+':'+((mySplitRHour1)/4.8));//textbox1 x2=(((mySplitRHour2)/12)+':'+((mySplitRHour2)/4.8));//textbox2 cumprimentos Link to comment Share on other sites More sharing options...
K Posted March 10, 2008 at 07:51 PM Report Share #171858 Posted March 10, 2008 at 07:51 PM poe o valor da funcao dentro de Math.round x1=Math.round((((mySplitRHour1)/12)+':'+((mySplitRHour1)/4.8))); SELECT * FROM users WHERE clue > 0;0 rows returned. Link to comment Share on other sites More sharing options...
K Posted March 10, 2008 at 08:21 PM Report Share #171861 Posted March 10, 2008 at 08:21 PM Podes tambem usar o Math.floor se essa funcao nao te da' os resultados que pretendes. SELECT * FROM users WHERE clue > 0;0 rows returned. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now