2

Whats it called when you subtract 1 or more from a number and get its decimal component back as result?

For example, lets say
((x+y)/y) - 1 == x/y

For example
((x+y)/y) == d('1.000041160213365071474861471983496528380123531238424473420976789')
and the right hand side is
(x/y) == d('0.000041160213365071474861471983496528380123531238424473420976789')

Is this trivial or something interesting or a concept that others are familiar with and I just haven't learned?

Comments
  • 8
    It's called "distributive property" (school math) and means:
    a * (b + c) = a*b + a*c.

    ((x+y)/y) - 1 = (x/y + y/y) - 1 = x/y + y/y - 1 = x/y + 1 - 1 = x/y
  • 4
    @Fast-Nop sharp and effective for a nop
  • 2
    @Fast-Nop *class in unison* THANK YOU MISTER NOP.
  • 1
    @Wisecrack i got a question for you...

    The website I'm building is like a crypto flavored kickstarter/gofundme.
    What I need assistance is figuring out how to write python code for this process:
    1. There will be an intermediary wallet used to gauge the funds in order to payout [like kickstarter]- the second function of this intermediary wallet is to deduct it's commission
    2. For each user account post a unique ID is created and that is now linked to the wallet used to deposit their final funds in.
    I don't need you to do the work for me... I just need guidance on how to visualize a process to write this out.. maybe some relevant documentation? i've already attempted but was outa luck. What language would be best used in this case? im thinking python but let me know.
  • 0
    @newbiestnooob the language that you're familiar with will be your best approach. If you're uncertain though, python is easy to find developers for, widely supported, and has plenty of libraries ("batteries included" as it were)

    For crypto, a good approach would be to build out a lightening node, because that's going to meet all your needs 1. Ledger support (obviously), 2. Faster transactions than bitcoin even though its built on bitcoin, 3. Lightening network nodes are going to be a big part of bitcoin in the future. Some people will spend spread FUD to push bitcoin cash and a few alternatives, but btc is still the standard. 4. Lightening supports things like smart contracts, which will simplify other aspects of your project, such as fulfilling pledges (in the case of a site that doesnt pay put funds into the full amount is reached).
  • 0
    @Wisecrack t

    his wallet system will need to do multiple functions.. receive money.. deduct commission or return funds if fundraiser goal not met

    I can do this in a solidarity smart contract.. but my problem is that i need to integrate this into a wordpress or similar hosting
  • 0
    @newbiestnooob well that's an implantation detail. I'm not a wordpress guy, you'll have to ask them.
Add Comment