In Word 2007, we can easily make some simple calculations of the data in the table and convert the data into the format we need.
First, data calculation
Take the table shown in Figure 1 as an example, we need to calculate the sum of each person and the average per quarter.
First position the mouse over the second row at the Sixth column intersection (that is, the F2 cell), where the Table Tools toolbar is added to the ribbon, and the design and L
//JS Regular implementation of user input bank card number control and formatJS Regular implementation of user input bank card number control and format
Format: Area code-Telephone (landline)/fax number-Extension number
(0) (2/3-digit-) 7/8-digit (-1 to 8-digit)
such as: 021-88888888-8888, 88888888, 88888888-88, 21-88888888, 0556-88888888, etc.
Writing a:
Writing two:
Javascript converts a number into a string in the currency format, javascript currency
Here, the first method is to use JavaScript to convert the number to the format of the currency string (parameter: retain decimal places, currency symbols, integer part Of the thousands separator, decimal separator)
Here, the second
Class program {static void main (string [] ARGs) {console. writeline ("Digital formatting output"); formatenumericalvalue (99999); console. readkey ();}/** Number Format output * C or C monetization format, by default, the currency symbol of the country and region set by the computer is used to represent * E or E scientific notation to represent * D or D formatte
Date format:The date format queried in the database may not be the format we want to display, such as timestamp display to the nanosecond level. Here are two of the kinds I used.Two ways to specify the date format: the first, the SQL to convert, and the second, the cell display format to set. It is recommended that the
This article is from the "Empty" blog, make sure to keep this source http://6738767.blog.51cto.com/6728767/1583073JavaScript example four (input box number format detection)
This article mainly introduces the way to format numbers in JS, using plus and minus commas to process the amount, a formatted amount of code, and a friend in need to refer to the following Example 1, which turns the number 1111111 to 11,111,111.00 and retains two decimal places. nbsp; Code as follows: ; nbsp; nbsp; nbsp; [Ctrl + a full election note: If the need to introduce external JS need to refresh t
In two parts, the first part is on the page, according to the amount of input tag content, dynamically update the contents of the total price tag, the code is as follows:The other part is the verification of the button, the code is as follows:1JS in the page according to the number of changes in total Price and button for format verification
Copy Code code as follows:
The format of the amount s is the parameter to be formatted (floating-point type), n is the number of digits reserved after the decimal point
function Formatmoney (s,n) {
n = n>0 ns = parsefloat ((s+ ""). Replace (/[^\d\.-]/g, "")). ToFixed (n) + "";
var L = s.split (".") [0].split (""). Reverse (),
r = S.split (".") [1];
t = "";
for (i = 0;it+=l[i]+ (i+1)%3==0 (i+1)!
Cell phone number format regular expression
Match domestic phone number: D{3}-d{8}¦d{4}-d{7}Commentary: Match form such as 0511-4405222 or 021-87888822
The front-end code I use Jquery.validate.js, the code is as follows:
JavaScript code
This is only an inexact verification, can only be verified to a range, so the focus is still behind.
PHP code
$mobile
The action to change the format of the formula numbering is as follows:
1. Click the Mathty tab in the Word menu. If you do not have this menu in Word, you need to load it, and the specific load method can refer to the tutorial: teach you to add a MathType add-in to a Word document.
Click the MathType option in Word
2. In the MathType menu, click "Formula number
You often need to verify the email address, mobile phone number, and phone number. Here, record the regular expression verification implementation in ASP
Function validate (byval STR, byval number)
Dim temp, Reg
Set Reg = new Regexp
Reg. ignorecase = true
Reg. Global = true
Select case CSTR (number)
'Engl
Financial tasks always have high requirements on performance, usability, and accuracy, including some small details.For example, when the amount needs to be displayed, it is converted to a sub-digit with two digits after the decimal point. When editing, You need to format and remove the commas. I found a code segment online, but there was a problem when I edited it again. I modified the Code as follows:
{linenumber(this)}">
Function outputmoney (
JSTL Fmt:formatnumber Date, number, currency format
Use
Its URI can be under the Fmt.tld file
1. Date format
Value: Date to format
Pattern: Format of date formatting
2 Number
Select all text and number cells to be modified, select "data"> "data" (for example) in the Excel menu) The following dialog box is displayed: Choose "Next"> "Next"> "normal" as the column data format. (For example) In the preceding method, if you want to convert the number
Recent projects need our front end of the amount of the decimal format (that is, every three digits separated by commas), the code has been modified before the version is my negligence really sorry everyone! Now have made a change if there is not perfect place please advise!
1. Support comma separated by 0-9-bit comma
The JS code is as follows:
Copy Code code as follows:
/**
* JS format
* @
When you enter your ID number, you may make an error accidentally. Let's talk about how to use the ET format conversion function to verify the birth date part of the ID number.
Figure 1
As shown in Figure 1, a is listed as an identity card number (the format of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.