comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: SPLIT numbers into sub-numbers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: SPLIT numbers into sub-numbers [message #80582 is a reply to message #80580] Sat, 23 June 2012 14:13 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 23/06/12 03:45, Kenneth P. Bowman wrote:
> year = 0
> month = 0
> day = 0
> READS, ts, year, month, day, FORMAT = "(I4,2I2)"

Nice, I had not thought of that.

My first idea was:

num = 20100115L ; very important: force LONG integer type!
y = num/10000
m = (num-y*10000)/100
d = num - y*10000 - m*100
print, num, y, m, d

==> 20100115 2010 1 15


chl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: astronomy library
Next Topic: Re: Coyote graphics resizeable window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:56 PDT 2025

Total time taken to generate the page: 0.00430 seconds