Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Special Functions : NFORMAT
Q11224 - INFO: NFORMAT

NFORMAT rounds the value to the specified Decimal Places and sets the cell to display to the specifed Decimal Places (ie it overrides Format, Cell, Decimal Places).

SYNTAX:

NFORMAT(Value,DecimalPlaces) 

Value:  Value to be formatted.  Can be value, cell reference, or another function.

Decimal Places: Number of Decimal Places to round to

NOTES:

This function is used when designing a report that prompts for the variable number that you want to report on.  Using this function with VINFO (see example below) allows you to format the results properly.

EXAMPLES:

NFORMAT(7.678,2)  displays 7.68 in the cell


NFORMAT(B3,VINFO(41,"DECPLACES"))  displays 4.7 where B3 = 4.6667.  VINFO is used to return the number of Decimal Places for variable 41. 

NFORMAT(V(B$2,1),VINFO(B$2,"DECPLACES"))  formats the daily value for the variable number entered in B2 to the number of decimal places for the variable number entered in B2

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 5/11/2008 8:07 AM.
Last Modified on 5/11/2008 8:07 AM.
Last Modified by Scott Dorner.
Article has been viewed 2406 times.
Rated 9 out of 10 based on 2 votes.
Print Article
Email Article