Module Calculating

  • Hi, I'm traying to divide two floats, and i want to obtain the residuo from that divition, but i 'dont know how to obtain it.... I hope can somebody help me....

  • @f1 - cast(@f1/@f2 as int)*@f2

     

     

  • Sorry, my english isn't good, but, thanks, I was resolved my problem.

     

  • % (Modulo)

    Provides the remainder of one number divided by another.

    Syntax

    dividend % divisor

    Why not use, what's already there? Too straightforward, I suppose ...

     


    _/_/_/ paramind _/_/_/

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply