• 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: [Semi-OT] Using just the decimal just use modf()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Semi-OT] Using just the decimal just use modf()


  • Subject: Re: [Semi-OT] Using just the decimal just use modf()
  • From: Charles Bennett <email@hidden>
  • Date: Mon, 03 Sep 2001 11:26:05 -0400

To Ondra... "man modf" ;-)

doesn't modf do what you want?

double modf(double value, double *iptr)

modf breaks the argument "value" into integral and fractional parts
it stores the integral part as a double in the localtion pointed to
by iptr it RETURNS the fractional part.

Bada Bing, Bada Bang, Bada Boom! :-)

chuck

Ondra Cada wrote:
>
> Rob,
>
> >>>>>> Rob Rix (RR) wrote at Mon, 3 Sep 2001 06:33:28 -0400:
> RR> What function (in math.h or wherever else) removes the whole value from a
> RR> double?
>
> man floor
> ---
> Ondra Cada
> OCSoftware: email@hidden http://www.ocs.cz
> private email@hidden http://www.ocs.cz/oc
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev

[demime 0.98b removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]


References: 
 >[Semi-OT] Using just the decimal (From: Rob Rix <email@hidden>)

  • Prev by Date: Re: [Semi-OT] Using just the decimal
  • Next by Date: Re: Another controversial question
  • Previous by thread: Re: [Semi-OT] Using just the decimal
  • Next by thread: RE: [Semi-OT] Using just the decimal
  • Index(es):
    • Date
    • Thread