Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Code Snippet - Money

Code Snippet - Money

Scheduled Pinned Locked Moved The Lounge
csharpquestion
46 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Bergholt Stuttley Johnson

    how is it impossible, it is after all just a number (however negative) and as I have had a negative balance transferred between banks I would have to disagree

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #13

    I'm working (from the code side) with bank transfers and the APIs I know of do not accept negative numbers...You are always pass in positive numbers, only the direction may change...

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    B 1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      It is technically impossible to transfer a debt...There are good sides of the bank system too...

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #14

      Not true in the least, if the creditor is in agreement, then it is very straight forward to transfer a liability. In the case of a creditor being unwilling to allow a third party to take on the debt there are still ways around it.

      Kornfeld Eliyahu PeterK 1 Reply Last reply
      0
      • N Nagy Vilmos

        Not true in the least, if the creditor is in agreement, then it is very straight forward to transfer a liability. In the case of a creditor being unwilling to allow a third party to take on the debt there are still ways around it.

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #15

        This is kind of thing I never met while working online - my work involves payments of students to school, school to student/teacher...You probably are talking about some more complicated business actions...

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        N 1 Reply Last reply
        0
        • D devenv exe

          If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #16

          No programming questions in the lounge!!! no homework!!! ... erm... ok... :laugh: After the first shock, I think something like:

          class Program
          {
          static void Main(string[] args)
          {
          Console.WriteLine("42");
          }
          }

          would do it... :rolleyes: PS: Never before I've written something in C#...

          S 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            I'm working (from the code side) with bank transfers and the APIs I know of do not accept negative numbers...You are always pass in positive numbers, only the direction may change...

            B Offline
            B Offline
            Bergholt Stuttley Johnson
            wrote on last edited by
            #17

            then it has changed as I used to work in finance and it used to accept negatives. however I guess you could do it with a zero balance and then a withdrawal

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • B Bergholt Stuttley Johnson

              then it has changed as I used to work in finance and it used to accept negatives. however I guess you could do it with a zero balance and then a withdrawal

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #18

              I understand from Nagy that there still options of negative - I just weren't in that part of the town :-D

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              B 1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                This is kind of thing I never met while working online - my work involves payments of students to school, school to student/teacher...You probably are talking about some more complicated business actions...

                N Offline
                N Offline
                Nagy Vilmos
                wrote on last edited by
                #19

                Not at all, even with simple retail banking you can have someone take on your debts. It is quite common in finance [and sneekily expensive] to consolidate all your debts. The new lender becomes the debtor for the original debt and takes on all the liabilities therein, you then get a liability to them. In a much simpler scenario, kid goes FUBAR with the credit card and Dad steps in, again, and takes on the liability by paying it. In this scenario, there is no legal transfer of liability because the original debt has been cleared, however Dad may well hold a nominal liability to the child as in "Dad, can I get a new phone?", "Straight after you pay me the £5k you cost me!" :-D

                Kornfeld Eliyahu PeterK 1 Reply Last reply
                0
                • N Nagy Vilmos

                  Not at all, even with simple retail banking you can have someone take on your debts. It is quite common in finance [and sneekily expensive] to consolidate all your debts. The new lender becomes the debtor for the original debt and takes on all the liabilities therein, you then get a liability to them. In a much simpler scenario, kid goes FUBAR with the credit card and Dad steps in, again, and takes on the liability by paying it. In this scenario, there is no legal transfer of liability because the original debt has been cleared, however Dad may well hold a nominal liability to the child as in "Dad, can I get a new phone?", "Straight after you pay me the £5k you cost me!" :-D

                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu Peter
                  wrote on last edited by
                  #20

                  You are taking about something else...It isn't transferring an amount of money with a negative sign, but take over the responsibility of a debt - I wasn't talking of such complicated thing, I merely asked devenv.exe to pass the money to me - he does not understand it anyway... :-D

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  N 1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    You are taking about something else...It isn't transferring an amount of money with a negative sign, but take over the responsibility of a debt - I wasn't talking of such complicated thing, I merely asked devenv.exe to pass the money to me - he does not understand it anyway... :-D

                    N Offline
                    N Offline
                    Nagy Vilmos
                    wrote on last edited by
                    #21

                    Every transaction is transfer of liability. The money in your bank account is a debt [the bank owes you], so when you pay in money, you are giving them a debt [negative value] :)

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      I understand from Nagy that there still options of negative - I just weren't in that part of the town :-D

                      B Offline
                      B Offline
                      Bergholt Stuttley Johnson
                      wrote on last edited by
                      #22

                      think of this way, if I owe £1 billion but pay off the interest on time then this is a big earner for the financial institution, so big that others will try and get me to move to them, this is why if I owe billions I can get a better interest rate than if I only owe a few 100

                      1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        It is technically impossible to transfer a debt...There are good sides of the bank system too...

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #23

                        Err no it isn't. This is how debt collection companies work in a lot of cases.

                        1 Reply Last reply
                        0
                        • J Joan M

                          No programming questions in the lounge!!! no homework!!! ... erm... ok... :laugh: After the first shock, I think something like:

                          class Program
                          {
                          static void Main(string[] args)
                          {
                          Console.WriteLine("42");
                          }
                          }

                          would do it... :rolleyes: PS: Never before I've written something in C#...

                          S Offline
                          S Offline
                          Super Lloyd
                          wrote on last edited by
                          #24

                          Hey, Now you are a C# developer too! Welcome to the club, and well done! :)

                          J 1 Reply Last reply
                          0
                          • D devenv exe

                            If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                            A Offline
                            A Offline
                            Amarnath S
                            wrote on last edited by
                            #25

                            devenv.exe wrote:

                            C# code snippet that shows/explains how money is useless

                            System.Console.WriteLine("how money is useless");

                            1 Reply Last reply
                            0
                            • S Super Lloyd

                              Hey, Now you are a C# developer too! Welcome to the club, and well done! :)

                              J Offline
                              J Offline
                              Joan M
                              wrote on last edited by
                              #26

                              Thank you! I'll try to opt for a :bob: MVP and to win any of the contests here... I firmly believe this code will open me doors... Just in case, can I give any possible employer your reference? :rolleyes:

                              S 1 Reply Last reply
                              0
                              • D devenv exe

                                If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                                D Offline
                                D Offline
                                Duncan Edwards Jones
                                wrote on last edited by
                                #27

                                devenv.exe wrote:

                                If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                                Open source :)

                                S 1 Reply Last reply
                                0
                                • A Agent__007

                                  Before starting off with the code, I would first understand the requirement - "How exactly is money useless?" ;)

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #28

                                  Ah, Glasshopper, so you are Amelican...

                                  A 1 Reply Last reply
                                  0
                                  • M Mark_Wallace

                                    Ah, Glasshopper, so you are Amelican...

                                    A Offline
                                    A Offline
                                    Agent__007
                                    wrote on last edited by
                                    #29

                                    Mark_Wallace wrote:

                                    Ah, Glasshopper, so you are Amelican...

                                    Sorry, I didn't follow.

                                    M 1 Reply Last reply
                                    0
                                    • A Agent__007

                                      Mark_Wallace wrote:

                                      Ah, Glasshopper, so you are Amelican...

                                      Sorry, I didn't follow.

                                      M Offline
                                      M Offline
                                      Mark_Wallace
                                      wrote on last edited by
                                      #30

                                      Well, most of the rest of the world is capable of seeing the uselessness of money.

                                      L 1 Reply Last reply
                                      0
                                      • D devenv exe

                                        If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                                        M Offline
                                        M Offline
                                        Maximilien
                                        wrote on last edited by
                                        #31

                                        ++income--;

                                        1 Reply Last reply
                                        0
                                        • D devenv exe

                                          If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                                          B Offline
                                          B Offline
                                          BillWoodruff
                                          wrote on last edited by
                                          #32

                                          What have you tried so far ?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups