Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Ask the difference and concrete application of functions STR and CHR in VFP.
Ask the difference and concrete application of functions STR and CHR in VFP.
Are you asking what these three independent functions mean?

What does the plus sign stand for?

The function is used to convert ascii code into characters.

For example, chr( 13) is a carriage return,

Chr(65) is a.

The function converts numbers into characters,

There are three parameters,

The first is the number to be converted,

The second is the total length of the result, and the third is the number of decimal places.

For example, str (6.156,3,2) =' 6.2'

Although 2 decimal places are reserved, the total length is limited to 3 digits (including decimal points), so only 1 decimal place is actually reserved.