Laman

Jumat, 15 April 2011

Mendapatkan Type data double dari pembagian dua data integer

Pada pembagian dua buah type data integer pada C# akan menghasilkan type data interger pula, sehingga jika melakukan pembagian 4 dengan angka 5 hasilnya bukanlah 0.8 melainkan 1. Trus bagaimanakan caranya agar mendapatkan nilai double dari hasil pembagian dua data integer tersebut?, simpel sekali kita hanya diwajibkan untuk mengkonvert type data integer ke type data double, maka dari pembagian tersebut akan menghasilkan type data double. Berikut ini adalah script untuk mendapatkan type data double dari pembagian dua type data ingteger 

hasil = (double)angka1 / (double)angka2

13 komentar:

  1. Rooney represented the possibility of something better for Jan and her sons — Mark says they were on welfare — though, at first, Rooney was so destitute he had to move in to their rental home in Sherman Oaks. Eventually, he got together some money and, recalls Mark, "took us to nice dinners, taught us michael kors outlet online a lot about etiquette and all that stuff, exposed us to a lot of things, you know, horse racing and golf."
    Canvas ads also load much faster than retailers' sites, which keeps a customer engaged. However, should a user choose michael kors sale to bite the bullet and make a purchase, they still have the option of clicking through to the brand's site. The development of the growing shopping options is michael kors uk a response to the growing number of users who are accessing the social site through a mobile device. According to the trade, mobile commerce is expected to grow at a double digit annual rate in the next five years, and the ease of shopping on Facebook allows brands to capitalize on this trend without having to spend time and money developing their own apps.
    Hadley michael kors tote Freeman of the U.K.'s Guardian praised Kors for typically designing clothes with his customer in mind rather than trying to create something that would look edgy in a fashion shoot."But Wednesday's show, which took the eternally popular and eternally misguided 2015 michael kors outlet theme of 'safari,' looked like something designed solely for a magazine fashion shoot in Africa, probably starring Angelina Jolie lounging decorously on a designer handbag while gazing soulfully at some noble tribesmen," Freeman wrote.Amy Odell of New York Magazine was michael kors outlet online store 49.00 outlet more diplomatic in her assessment of the collection.
    Augustine has not recovered any money. He says Rooney's art collection remains unaccounted for and that he hired a P.I. to follow Chris.Augustine tried to initiate criminal prosecution of Chris, filing a michael kors report with the Ventura County Sheriff's Department, but says, "They decided it was a civil matter and refused to take it to the D.A." A spokesperson for the VCSD said, "In 2013 we received a report of a possibility of michael kors sale some kind of a financial elder abuse that was investigated, and at no time was a crime ever established."Says Chris: "If they proved just one thing, I could go to jail. They couldn't prove anything."
    Has dressed in 2015: Lupita michael kors outlet Nyong'o,

    BalasHapus