how can I use a number greater than 2147483647

# Thread: how can I use a number greater than 2147483647

1. Junior Member
Join Date
Dec 1969
Posts
6

## how can I use a number greater than 2147483647

2. Senior Member
Join Date
Dec 1969
Posts
2,930

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriFunctions.asp<BR><BR>do you have a heavy math background? i forget all of my trigonometry, but there are about a million ways to do it. for example...<BR><BR>sin^2 + cos^2 = 1<BR><BR>http://www.math2.org/math/trig/identities.htm

3. Junior Member
Join Date
Dec 1969
Posts
6

Hi Thanks for the help.<BR><BR>Knowing what cos/sin is and how they are related etc is not the problem however. The problem is not being able to use an integer greater than 2147483647.<BR><BR>Try writing this script in a page and you&#039;ll see what I mean.<BR><BR>intValue = Cos(2147483468)<BR><BR>It cannot calculate numbers greater than this.<BR><BR>If you can do get this to work, let me know what your server configuration etc is cos it should help me<BR><BR>Thanks for the reply<BR><BR>Euan<BR>

4. Senior Member
Join Date
Dec 1969
Posts
2,930

worked fine...<BR>0.635844211222353<BR><BR>on windows 2000 server with latest patches

5. Junior Member
Join Date
Dec 1969
Posts
6

did you get this to work?<BR><BR>Euan

6. Senior Member
Join Date
Dec 1969
Posts
2,930

## yuppers

&#060;%<BR>intValue = Cos(2147483468)<BR>Response.Write intValue<BR>%&#062;

7. Junior Member
Join Date
Dec 1969
Posts
6

## RE: yuppers

woops, I put the wrong number in, try it with <BR>Cos(2147483648)<BR><BR>If it still works let me know cos then I&#039;m going to get onto my ISP, as it would seem the problem may lie there.<BR><BR>Thanks<BR><BR>Euan

8. Senior Member
Join Date
Dec 1969
Posts
2,930

## yup

error, good luck with that one ;-) why don&#039;t you divide it??? any number is in degrees, so if you mod it by 360 you can still get the same answer, but with a smaller number

9. Senior Member
Join Date
Dec 1969
Posts
2,930

## HA

nevermind... that produces an overflow... the number&#039;s just too **** big

10. Junior Member
Join Date
Dec 1969
Posts
6

## RE: yup

Tried that. You can&#039;t use a number greater than 2147483647 with mod either :-(<BR><BR>Same error message happens. <BR><BR>I am going mental with this. Got posts in Microsoft Newsgroups, asptoday, aspmessageboard and macromedia ultradev exchange but no luck yet. you&#039;re the first to actually confirm that I&#039;m not talking out my arse though, which makes me feel a bit better, even if I&#039;m still clueless as to what to do next.<BR><BR>If you have any bright ideas please let me know<BR><BR>Thanks again<BR><BR>Euan <BR><BR>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•