Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

15 000 000 years <=> ? miliseconds

Name: Anonymous 2009-03-27 4:55

I have no fucking idea and Java probably won't handle such huge number. Thankx

Name: Anonymous 2009-03-27 5:02

Name: Anonymous 2009-03-27 5:02

What a lousy language. You should read SICP and program it in Scheme.

Name: Anonymous 2009-03-27 5:07

4.7335389 × 10^17 > Double/Long

Name: Anonymous 2009-03-27 5:11

Tricky question OP. What calendar definition of years are you using, does it include leap years, leap seconds, will it finish in a period of daylight saving? If it is using a time standard defined by orbital periods, as the elliptical orbits altar over a long time as such; can you calculate the cumulative offset in milliseconds? Is it reasonable to presume you could effectively calculate how solar time will vary as the universe ages and gravitational forces continue to move us in a discrete chaotic, dynamic system? Would it be impossible to calculate without first assuming the computable-universe hypothesis to be true?

Name: Anonymous 2009-03-27 5:37

OP here: year = 365 days

Name: Anonymous 2009-03-27 6:08

You should use ruby

Name: Anonymous 2009-03-27 6:40

Think 1000/60/60/24/7/365.

Name: FrozenVoid 2009-03-27 7:15

>>6
But technically speaking a year is just a tiny bit more than 365 days, as the earth's orbit around the sun changes a bit

Name: Anonymous 2009-03-27 7:57

15000000 * 365.2425 * 24 * 3600 * 1000 will be close.

Name: Anonymous 2009-03-27 8:01

>>> 15000000 * 365.2425 * 24 * 3600 * 1000
1.4335428e+16

Name: Anonymous 2009-03-27 8:44

Prelude> 15000000 * 365.2425 * 24 * 360 * 1000
4.7335428e17


Prelude> 15000000 * 365 * 24 * 360 * 1000
473040000000000000

Name: Anonymous 2009-03-27 9:36

The OP is a Troll. Everyone here knows that the Python language doesn't suffer of word overflows and supports arbitrary long integers.

If you are asking this, you are a mischief maker. You freak!

Name: Anonymous 2009-03-27 9:52

>>13
You've mistaken Python for Boa.

Name: Anonymous 2009-03-27 10:07

>>12
ghci> 60 * 60 == 360
False

Name: lambdabot 2009-03-27 11:16

>>15
Add a type signature

Name: Anonymous 2009-03-27 11:23

>>15,16
I've tried many types, when I realised that IHBT.

Name: Anonymous 2009-03-28 3:13

>>9
You think that's why we have leap years? Fucking moron.

Name: Anonymous 2009-03-28 21:54

final long yearInMS = (long) d * h * m * s * ms;

Apparently you have to CAST...

JAVA, O JAVA

Name: Anonymous 2009-03-28 22:21

>>19
If your variables are the wrong type, then yes, it's nice if you cast explicitly, but it's by no means mandatory unless you've managed to misconfigure your enterprise IDE.

Name: Anonymous 2009-03-29 1:44

BigInteger fifteenMillionYearsInMilliseconds = new BigInteger(15000000).multiply(new BigInteger(365)).multiply(new BigInteger(24)).multiply(new BigInteger(60)).multiply(new BigInteger(60)).multiply(new BigInteger(1000));

Name: Anonymous 2009-03-29 15:51

>>12
$ 15000000 * 365.2425 * 24 * 360 * 1000
bash: 15000000: command not found

$ 15000000 * 365 * 24 * 360 * 1000
bash: 15000000: command not found

Name: Anonymous 2009-03-29 16:12

>>22
You need to install Prelude.

Name: Anonymous 2009-03-29 17:25

>>23
$ aptitude search prelude
p   libprelude-dev               - Hybrid Intrusion Detection System [ Development files ]                      
p   libprelude-perl              - Hybrid Intrusion Detection System [ Base library ]                           
p   libprelude2                  - Hybrid Intrusion Detection System [ Base library ]                           
p   libprelude2-dbg              - Hybrid Intrusion Detection System [ Debug symbols ]                          
p   libpreludedb-dev             - Hybrid Intrusion Detection System [ Development files ]                      
p   libpreludedb-perl            - Hybrid Intrusion Detection System [ Base library ]                           
p   libpreludedb0                - Hybrid Intrusion Detection System [ Base library ]                           
p   prelude-lml                  - Hybrid Intrusion Detection System [ Log Monitoring Lackey ]                  
p   prelude-manager              - Hybrid Intrusion Detection System [ Report Manager ]                         
p   python-prelude               - Hybrid Intrusion Detection System [ Base library ]                           
p   python-preludedb             - Hybrid Intrusion Detection System [ Base library ]                           
v   python2.4-prelude            -                                                                              
v   python2.5-prelude            -


Hybrid Intrusion Detection System?

Name: Anonymous 2009-03-29 17:32

>>24
You need to install an operating system with a software distribution model that isn't absolute shit.

Name: Anonymous 2009-03-29 17:37

>>25
jane@pinkubox~: sudo apt-cache search prelude
[sudo] password for jane:
drift - type sensitive preprocessor for Haskell
libhugs-base-bundled - Basic libraries
libhugs-haskell98-bundled - Compatibility with Haskell 98
libocamlbricks-ocaml-dev - Miscellaneous utility functions in OCaml for Marionnet
libpreludedb-dev - Hybrid Intrusion Detection System [ Development files ]
libpreludedb-perl - Hybrid Intrusion Detection System [ Base library ]
libpreludedb0 - Hybrid Intrusion Detection System [ Base library ]
piwi - P(erl|relude) IDS Web Interface - A frontend to your Prelude database
prelude-lml - Hybrid Intrusion Detection System [ Log Monitoring Lackey ]
prelude-manager - Hybrid Intrusion Detection System [ Report Manager ]
prewikka - Graphical analysis console for the Prelude IDS Framework
python-preludedb - Hybrid Intrusion Detection System [ Base library ]
libprelude-dev - Hybrid Intrusion Detection System [ Development files ]
libprelude-perl - Hybrid Intrusion Detection System [ Base library ]
libprelude2 - Hybrid Intrusion Detection System [ Base library ]
libprelude2-dbg - Hybrid Intrusion Detection System [ Debug symbols ]
python-prelude - Hybrid Intrusion Detection System [ Base library ]

Name: Anonymous 2009-03-29 18:16

>>26
Jane
Good try, James, and welcome back.

Name: Anonymous 2009-03-29 18:39

java.lang.BigInteger

Name: James 2009-03-29 19:04

>>27
I'm the James which you may have seen previously in other threads, and I can say without a fiber of doubt that I am not >>26.

Name: Anonymous 2009-03-29 19:10

>>29
Nice try, Jane.

Name: James 2009-03-29 19:27

>>30
Nice try, [b]Jane[/b.

Name: Anonymous 2009-03-30 13:46

>>22
>>24
>>26

psssst: install ghci

Name: Anonymous 2009-03-30 15:28

>>32
psssst: install yhbt

Name: Anonymous 2009-03-30 17:35

>>32
I installed the ghc6 package and I have ghc, but no ghci.

Name: Anonymous 2010-12-25 11:52

Name: Anonymous 2013-01-19 23:22

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List