SlideShare a Scribd company logo
1 of 1
Download to read offline
var b = new Number(2);
          Microsoft AJAX Library: Number Type Extensions                                               var c = Number.parseInvariant(quot;1.53quot;) + a + b;
                                                                                                       // c = 7.53
Number.format (format)
                                                                                                                   Microsoft AJAX Library: Error Type Extensions
Formats a number using the invariant culture. Use the format method to replace
the Number object value with a culture-independent text representation based on
the specified format parameter.
                                                                                                       Function                            Description
Number.localeFormat (format)
Formats a number using the current culture.                                                                                                Creates a Sys.ArgumentException object with the
                                                                                                                                           specified error message and the name of the invalid
                                                                                                       Error.argument
Remarks                                                                                                                                    function parameter that caused the exception.
Use the localeFormat method to replace the Number object value with a text                                                                 Creates a Sys.ArgumentNullException object with
                                                                                                                                           the specified error message and the name of the
                                                                                                       Error.argumentNull
representation based on the specified format parameter. The format parameter
                                                                                                                                           parameter that caused this exception.
determines how the number will be presented. The localeFormat method
provides the number based on a specific culture value (locale).                                                                            Creates a Sys.ArgumentTypeException object with
                                                                                                                                           the specified error message and the name, actual type,
                                                                                                       Error.argumentType
Supported formats                                                                                                                          and expected type of the parameter that caused this
                                                                                                                                           exception.
Below are examples of supported formats to use with Number.format and
Number.localeFormat (only invariant culture shown):                                                                                        Creates a Sys.ArgumentUndefinedException
                                                                                                                                           object with the specified error message and the name of
                                                                                                       Error.argumentUndefined
Format                                        Formatted number                                                                             the parameter that caused this exception.
                                                                                                                                           Creates a new Error object with the specified message.
                                                                                                       Error.create
            The number is converted to a string that represents a percent
   p
            (e.g.: -1,234.56 %)                                                                                                            Creates a Sys.InvalidOperationException object
                                                                                                                                           with the specified error message and the name of the
                                                                                                       Error.invalidOperation
            The number is converted to a string of decimal digits (0-9), prefixed by a
   d                                                                                                                                       parameter that caused this exception
            minus sign if the number is negative (e.g.: -1234.56)
                                                                                                                                           Creates a Sys.NotImplementedException object
            The number is converted to a string that represents a currency amount                      Error.notImplemented
                                                                                                                                           with the specified error message.
   c
            (e.g.: (¤1,234.56))
                                                                                                                                           Creates an Sys.ArgumentOutOfRangeException
            The number is converted to a string of the form quot;-d,ddd,ddd.ddd…quot;                                                              object with the specified error message and the name of
                                                                                                       Error.argumentOutOfRange
   n
            (e.g.: -1,234.56)                                                                                                              the argument that caused this exception
                                                                                                                                           Creates a Sys.ParameterCountException object
Number.parseLocale (value)                                                                             Error.parameterCount
                                                                                                                                           with the specified error message
Creates a number from a locale-specific string. This function uses the
                                                                                                                                           Updates the fileName and lineNumber fields of the
Sys.CultureInfo.CurrentCulture property to determine the culture value.
                                                                                                       Error.popstackFrame                 Error instance to indicate where the Error was thrown
                                                                                                                                           as opposed to where the Error was created.
Number.parseInvariant (value)
                                                                                                       // Throw a standard exception type
Creates a floating-point numerical representation of value, if value is a valid string
                                                                                                       var err = Error.argumentNull(quot;inputquot;, quot;A parameter was undefined.quot;);
representation of a number; otherwise, NaN (not a number).                                             throw err;
Remarks                                                                                                // Throw a generic error with a message and associated errorInfo object.
                                                                                                       var errorInfoObj = { name: quot;SomeNamespace.SomeExceptionNamequot;,
The value argument can contain a decimal point and the quot;+quot; and quot;-quot; characters to                                            someErrorID: quot;436quot; };
indicate positive and negative, respectively.                                                          var err = Error.create(quot;A test messagequot;, errorInfoObj);
                                                                                                       throw err;
var a = new Number();
a = Number.parseInvariant(quot;4quot;);
   A function is static and is invoked without creating an instance of the object   Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24

More Related Content

Viewers also liked

Ms Ajax String And Object Extensions
Ms Ajax String And Object ExtensionsMs Ajax String And Object Extensions
Ms Ajax String And Object Extensionsjason hu 金良胡
 
Ms Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean ExtensionsMs Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean Extensionsjason hu 金良胡
 
Prix Essence
Prix EssencePrix Essence
Prix Essencebbgora
 
PròXim Orient
PròXim  OrientPròXim  Orient
PròXim Orientxavitu_bdn
 
Pueblos bárbaros modificada
Pueblos bárbaros modificadaPueblos bárbaros modificada
Pueblos bárbaros modificadaAndrea Rodriguez
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim OrientBarragan
 

Viewers also liked (8)

Ms Ajax String And Object Extensions
Ms Ajax String And Object ExtensionsMs Ajax String And Object Extensions
Ms Ajax String And Object Extensions
 
Ms Ajax Dom Element Class
Ms Ajax Dom Element ClassMs Ajax Dom Element Class
Ms Ajax Dom Element Class
 
Ms Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean ExtensionsMs Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean Extensions
 
Prix Essence
Prix EssencePrix Essence
Prix Essence
 
PròXim Orient
PròXim  OrientPròXim  Orient
PròXim Orient
 
Ms Ajax Dom Event Class
Ms Ajax Dom Event ClassMs Ajax Dom Event Class
Ms Ajax Dom Event Class
 
Pueblos bárbaros modificada
Pueblos bárbaros modificadaPueblos bárbaros modificada
Pueblos bárbaros modificada
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim Orient
 

More from jason hu 金良胡 (19)

新员工培训
新员工培训新员工培训
新员工培训
 
Javascript 闭包
Javascript 闭包Javascript 闭包
Javascript 闭包
 
Windows Powershell En
Windows Powershell   EnWindows Powershell   En
Windows Powershell En
 
正则表达式
正则表达式正则表达式
正则表达式
 
Work In Japan
Work In JapanWork In Japan
Work In Japan
 
Linuxcommand
LinuxcommandLinuxcommand
Linuxcommand
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
Asp.Net运行时
Asp.Net运行时Asp.Net运行时
Asp.Net运行时
 
Fwunixref
FwunixrefFwunixref
Fwunixref
 
X Query
X QueryX Query
X Query
 
Sql2005 Xml
Sql2005 XmlSql2005 Xml
Sql2005 Xml
 
Ms Ajax Dom Element Class
Ms Ajax Dom Element ClassMs Ajax Dom Element Class
Ms Ajax Dom Element Class
 
Ms Ajax Array Extensions
Ms Ajax Array ExtensionsMs Ajax Array Extensions
Ms Ajax Array Extensions
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext Js Dom Navigation
Ext Js Dom NavigationExt Js Dom Navigation
Ext Js Dom Navigation
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext J S Observable
Ext J S ObservableExt J S Observable
Ext J S Observable
 
Java Script Introduction
Java Script IntroductionJava Script Introduction
Java Script Introduction
 
Ext Js Dom Helper
Ext Js Dom HelperExt Js Dom Helper
Ext Js Dom Helper
 

Recently uploaded

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Ms Ajax Number And Error Extensions

  • 1. var b = new Number(2); Microsoft AJAX Library: Number Type Extensions var c = Number.parseInvariant(quot;1.53quot;) + a + b; // c = 7.53 Number.format (format) Microsoft AJAX Library: Error Type Extensions Formats a number using the invariant culture. Use the format method to replace the Number object value with a culture-independent text representation based on the specified format parameter. Function Description Number.localeFormat (format) Formats a number using the current culture. Creates a Sys.ArgumentException object with the specified error message and the name of the invalid Error.argument Remarks function parameter that caused the exception. Use the localeFormat method to replace the Number object value with a text Creates a Sys.ArgumentNullException object with the specified error message and the name of the Error.argumentNull representation based on the specified format parameter. The format parameter parameter that caused this exception. determines how the number will be presented. The localeFormat method provides the number based on a specific culture value (locale). Creates a Sys.ArgumentTypeException object with the specified error message and the name, actual type, Error.argumentType Supported formats and expected type of the parameter that caused this exception. Below are examples of supported formats to use with Number.format and Number.localeFormat (only invariant culture shown): Creates a Sys.ArgumentUndefinedException object with the specified error message and the name of Error.argumentUndefined Format Formatted number the parameter that caused this exception. Creates a new Error object with the specified message. Error.create The number is converted to a string that represents a percent p (e.g.: -1,234.56 %) Creates a Sys.InvalidOperationException object with the specified error message and the name of the Error.invalidOperation The number is converted to a string of decimal digits (0-9), prefixed by a d parameter that caused this exception minus sign if the number is negative (e.g.: -1234.56) Creates a Sys.NotImplementedException object The number is converted to a string that represents a currency amount Error.notImplemented with the specified error message. c (e.g.: (¤1,234.56)) Creates an Sys.ArgumentOutOfRangeException The number is converted to a string of the form quot;-d,ddd,ddd.ddd…quot; object with the specified error message and the name of Error.argumentOutOfRange n (e.g.: -1,234.56) the argument that caused this exception Creates a Sys.ParameterCountException object Number.parseLocale (value) Error.parameterCount with the specified error message Creates a number from a locale-specific string. This function uses the Updates the fileName and lineNumber fields of the Sys.CultureInfo.CurrentCulture property to determine the culture value. Error.popstackFrame Error instance to indicate where the Error was thrown as opposed to where the Error was created. Number.parseInvariant (value) // Throw a standard exception type Creates a floating-point numerical representation of value, if value is a valid string var err = Error.argumentNull(quot;inputquot;, quot;A parameter was undefined.quot;); representation of a number; otherwise, NaN (not a number). throw err; Remarks // Throw a generic error with a message and associated errorInfo object. var errorInfoObj = { name: quot;SomeNamespace.SomeExceptionNamequot;, The value argument can contain a decimal point and the quot;+quot; and quot;-quot; characters to someErrorID: quot;436quot; }; indicate positive and negative, respectively. var err = Error.create(quot;A test messagequot;, errorInfoObj); throw err; var a = new Number(); a = Number.parseInvariant(quot;4quot;); A function is static and is invoked without creating an instance of the object Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24