Page 5 of 6 FirstFirst 123456 LastLast
Results 41 to 50 of 56

Thread: Gas Calculator

  1. #41
    Newbie
    Join Date
    May 2004
    Posts
    24
    i quess i just have to ask why are u using commas for decimals? i have never seen 1/4 in decimal form of ,25 the only thing i can see is if u have a number over 1000, there u just should not use commas

  2. #42
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by siduri99
    i quess i just have to ask why are u using commas for decimals? i have never seen 1/4 in decimal form of ,25 the only thing i can see is if u have a number over 1000, there u just should not use commas
    Not all countries use a " . " as a decimal. Some countries use " , "
    It is dependent on you're regional settings.

    Frodo
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #43
    Newbie
    Join Date
    Jun 2004
    Posts
    7
    Quote Originally Posted by siduri99
    i quess i just have to ask why are u using commas for decimals? i have never seen 1/4 in decimal form of ,25 the only thing i can see is if u have a number over 1000, there u just should not use commas
    Look at the last entry. I did that with a dot for the decimals. Just look closer to the result, I think 362250 is a pretty high value either in Euros or in Dollars or Pounds, don't you think?

    Can it be that this .net framework mixes european notations (commas for decimals and dots for thousands) with the american (other way around)? More specific, that you coded it for the american version of .net, and because I live in Europe things get messed up?
    I am beginning to suspect this because the math is correct when I use the comma for decimals but then the database gets messed up, and the database remains correct when using dots but then the math is a disaster.

    [off topic] Frodo, I am type 01 [/off topic]

  4. #44
    Newbie
    Join Date
    May 2004
    Posts
    24
    it has to be the regional settings then, have never delt with anything other than US, and because the program is using the csv the commas will screw everything up. i quess i can switch the commas to something else, but not sure if the math will do well with the commas or not if someone knows for sure let me know and i will change it

  5. #45
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by siduri99
    it has to be the regional settings then, have never delt with anything other than US, and because the program is using the csv the commas will screw everything up. i quess i can switch the commas to something else, but not sure if the math will do well with the commas or not if someone knows for sure let me know and i will change it
    You just have to check and do a conversion in code.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  6. #46
    Newbie
    Join Date
    May 2004
    Posts
    24
    well i changed the , to a ; and the .csv file to a normal txt file since it isnt a csv file anymore, also tested it out with the french (belgium) regional settings (switched , and .) and the math seemed to work out, just dont use the sample fillups.txt with thos settings math will be way off. let me know if there is any other issues that come up with it. still trying to deal with the milage thing. might take a few days, have a lot of work to do for the next couple of days
    Attached Files Attached Files

  7. #47
    Mac Car Moderator kandyman676's Avatar
    Join Date
    Apr 2004
    Location
    Maryland
    Posts
    813
    you could just use the | character as a seperator for the fields. you will never use that in regullar typing:-P
    "If it works this good why F with it?" -KMFDM "Intro"

    Strive for ethical wardriving: http://faq.wardrive.net/

    My CarCPUs: v1 - 2000 | v2 - 2004
    Mp3Car Meets: http://detrimental.org/eyecandy/MP3CarMeets

  8. #48
    Newbie
    Join Date
    Jun 2004
    Posts
    7
    WHOOOHOOOO!!! It works just FINE now! Thanks a lot, and good luck with this and other future projects!

  9. #49
    Newbie
    Join Date
    May 2004
    Posts
    24
    well im not going to beable to work on this for a long while. about to start up a month long class 4 days a week 4 hours a day on top of the class im taking now so just wont have time to do anything so heres the source if any1 wants it, u will notice theres nothing for comments, and still very little error control but as i said no time to deal with it.
    Attached Files Attached Files

  10. #50
    Variable Bitrate Batmanatthenewb's Avatar
    Join Date
    Sep 2003
    Location
    Newark, Ohio
    Posts
    309
    Thanks for the app. Been using for about a week now. Done 3 fillups. Interesting to see the cost of gas per mile.

    Batman

Page 5 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Go get gas now!!
    By PoBoy in forum Off Topic
    Replies: 25
    Last Post: 08-31-2007, 10:58 PM
  2. Power Needs Calculator
    By Skippman in forum Power Supplies
    Replies: 2
    Last Post: 08-29-2003, 03:43 PM
  3. Regarding the PSU Calculator
    By guitar333 in forum Power Supplies
    Replies: 1
    Last Post: 06-28-2003, 12:03 PM
  4. Fuel tank burst of gas...problem???
    By PoBoy in forum Off Topic
    Replies: 7
    Last Post: 07-02-2002, 09:19 AM
  5. Anyone used a TI-8X Calculator to keep track of lists?
    By ToMaC in forum General Hardware Discussion
    Replies: 8
    Last Post: 03-26-2000, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •