--- loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2007/05/24 11:29:16 1.10 +++ loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2007/09/11 21:53:41 1.11 @@ -53,7 +53,15 @@ erf = 2/sqrt(pi) integral (0,x) et-sq an \&dollarformat(\$x,'optional target') & Reformats \$x to have a \$ (or $\backslash$\$ if in tex mode) and to have , grouping thousands. The 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank.\\ \hline - + +\parbox{6.49cm}{ +Option 1 - \$best = \&languages() \\ +Option 2 - @all = \&languages() \\ +Option 3 - \$best = \&languages($\backslash$@desired\_languages) \\ +Option 4 - @all = \&languages($\backslash$@desired\_languages) \\ +}& Returns the best language to use, in the first two options returns the languages codes in the preference order of the user. In the second two examples returns the best matches from a list of desired language possibilities. & \\ +\hline + \&roundto(\$x,\$n) & Rounds a real number to n decimal points. \$x and \$n can be pure numbers \\ \hline