Announcement

Collapse
No announcement yet.

What's the keyword in PB from the keyword "Trunc" in Pascal?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tom Hanlin
    replied
    Looks beautiful. If "x" and "b" are Integer types, you might prefer this:
    Code:
    n = FIX(x - b * (x \ b))
    Happy holyday.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Guest's Avatar
    Guest replied
    [QUOTE]Originally posted by Tom Hanlin:
    [B]Say, Stephane, how are you doing on the Delphi-style IDE for PowerBASIC
    that you started writing in 1999? Just curious.

    See the FIX function.


    Tom, Thanks for you quickly help
    Stephane

    This is then the right expression?

    I try:

    n = FIX(x - b * INT(x / b))

    Right?


    I'm in holyday !

    ------------------
    Brainsoft Programmers

    Leave a comment:


  • Tom Hanlin
    replied
    Say, Stephane, how are you doing on the Delphi-style IDE for PowerBASIC
    that you started writing in 1999? Just curious.

    See the FIX function.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Guest's Avatar
    Guest started a topic What's the keyword in PB from the keyword "Trunc" in Pascal?

    What's the keyword in PB from the keyword "Trunc" in Pascal?

    Hey Everyone,

    Can tell me what the keyword mains in PB from the keyword "Trunc"
    in Pascal?

    'Expression in Pascal
    '====================

    n:=TRUNC(x-b*INT(x/b));

    'How can I this translated in PB ?

    Thanks
    Stephane

    ------------------
    Brainsoft Programmers

    [This message has been edited by Stephane Fontaine (edited July 28, 2002).]
Working...
X