• 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: Where to report Script Editor bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to report Script Editor bug?


  • Subject: Re: Where to report Script Editor bug?
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 20 Feb 2004 14:41:02 -0700

On Feb 20, 2004, at 1:47 PM, Paul Berkowitz wrote:

It's handy that 'degrees Celsius' and 'degrees Fahrenheit' exist as classes
for conversion purposes. I don't get where you expect to be able to coerce
them to string. Be grateful that they coerce to real, and use that.

They convert to string, and for all cases other than zero, they present the string of the real.

E.g., -40 as degrees Celsius as string
--> "-40.0"

Only for zero does it show as the string of an exponential expression.

0 as degrees Celsius as string
--> " 0e+0"

Even numbers that as exponential expressions

(1.0E+12) as degrees Celsius as string
--> degrees Celsius 1.0E+12

return decimal numbers when displayed as strings

(1.0E+12) as degrees Celsius as string
"1000000000000"

So why does only zero degrees present the exponential notation when displayed as string?

BTW, degrees Fahrenheit does the same thing.

--
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." --Teddy Roosevelt
_______________________________________________
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: Where to report Script Editor bug?
      • From: Mr Tea <email@hidden>
References: 
 >Re: Where to report Script Editor bug? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Where to report Script Editor bug?
  • Next by Date: Re: Where to report Script Editor bug?
  • Previous by thread: Re: Where to report Script Editor bug?
  • Next by thread: Re: Where to report Script Editor bug?
  • Index(es):
    • Date
    • Thread