• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert long number to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert long number to string


  • Subject: Re: Convert long number to string
  • From: Gnarlodious <email@hidden>
  • Date: Sun, 18 Apr 2004 00:41:18 -0600

Entity Graff spoke thus:

>> <file:///Library/Documentation/Commands/dc/dc_toc.html>
Thanks Paul, I didn't know how to make that local URI.

> You can use dc instead but it uses reverse polish notation
Did someone say RPN? That's for me!

> echo `date +%s` `date +%s` 604800 % - p | dc
you can duplicate the second evaluation with 'd':
echo `date +%s` d 604800% - p | dc

> for comparison here is the line written for bc:
>
> echo `date +%s` - `date +%s` % 604800 | bc
>
> As you can see, the bc command is a bit easier to comprehend.
Not for a Forthhead like me. Graff, are you saying the 'echo' command piles
a bunch of stuff on a stack and 'bc' evaluates it all endfirst?

-- Gnarlie
http://www.PowerMops.com/
PowerMops: Forth Programming Language for Macintosh
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Convert long number to string
      • From: Martin Orpen <email@hidden>
    • Re: Convert long number to string
      • From: Graff <email@hidden>
References: 
 >Re: Convert long number to string (From: Graff <email@hidden>)

  • Prev by Date: Re: Convert long number to string
  • Next by Date: Re: InDesign - get old/latest file path of missing link
  • Previous by thread: Re: Convert long number to string
  • Next by thread: Re: Convert long number to string
  • Index(es):
    • Date
    • Thread