Limited Time Discount Offer 30% Off - Ends in 02:00:00

×

70-483 question 216 discussion

Purchase Individually

  • Premium File

    280 Questions & Answers
    Last Update: Dec 1, 2019

    $21.41
    $14.99
  • Training Course

    99 Lectures

    $14.27
    $9.99
  • Study Guide

    740 Pages

    $14.27
    $9.99

Download Free Microsoft 70-483 Exam Questions

You are developing an application that includes methods named ConvertAmount and
TransferFunds.
You need to ensure that the precision and range of the value in the amount variable is not
lost when the TransferFunds() method is called.
Which code segment should you use?

  • A Option A
  • B Option B
  • C Option C
  • D Option D
  • Mar 23, 2018, 11:56 AM

"You need to ensure that the precision and range of the value in the amount variable is not lost" float to decimal is an explicit conversion: The explicit numeric conversion may cause loss of precision or result in throwing exceptions. (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/explicit-numeric-conversions-table)

  • Mar 22, 2018, 12:04 PM

B is the correct answer. 123.45F will result in 123.44999694824219 for A, but B will give 123.45.

  • Mar 8, 2018, 07:05 PM

Correct answer can be both A and B. A is closer to "win" because it uses less memory (convert to 64-bit value - double) then B (convert to 128-bit value - decimal).

  • Mar 7, 2018, 11:13 AM

float to decimal may lost precision. float a = 123456789.123f; decimal b = (decimal)a; //b=123456800

  • Oct 19, 2017, 11:31 PM

Why is B incorrect ?

  • Aug 23, 2017, 10:05 PM

Why B is incorrect?

  • Jul 9, 2017, 03:43 AM

For those who thinks it's D, D has (int) conversation.

Purchase Individually

  • Premium File

    280 Questions & Answers
    Last Update: Dec 1, 2019

    $21.41
    $14.99
  • Training Course

    99 Lectures

    $14.27
    $9.99
  • Study Guide

    740 Pages

    $14.27
    $9.99

Microsoft 70-483 Training Course

Try Our Special 30% Discount Offer for
Premium 70-483 VCE File

  • Verified by experts

70-483 Premium File

  • Real Questions
  • Last Update: Dec 1, 2019
  • 100% Accurate Answers
  • Fast Exam Update

$14.99

$21.41

WINTER SALE: 30% DISCOUNT
This is ONE TIME OFFER

You save
30%

Enter Your Email Address to Receive Your 30% Discount Code

WINTER SALE: 30% DISCOUNT

You save
30%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@exam-labs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports