Int function problem?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by effigy.

I am going buggy!!!


I am trying to get the Integer part of a number, for example,

temp.f=132.56
tempint.l=Int(temp)
Debug temp
Debug tempint

tempint is returning 1 when I am expecting 132

Am I doing something wrong?

Derek
P.S. I am using the latest version 3.61
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

Get the math update from http://www.purebasic.com/update/
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by effigy.

Thank's that fixed the problem...

now on a sligthly different note...

How come the date() function doesn't go past 2037?

Derek
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

The date is stored in the number of milliseconds that have passed since 1st january of 1970, and due to the date being stored in LONG values, that can only go up to 2037.

Guess we need a change to that somewhen in 2030 or so

Timo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.
Guess we need a change to that somewhen in 2030 or so
OH, NO!!

El_Choni
Post Reply