# (cvunit value from to)
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="148"></a>
## (cvunit value from to)
---
Convert this unit to that unit.
---
This function converts the *value* from one type of measurement to another. The *value* is the number you want to convert. The *from* and *to* arguments convert from one unit to another.
For example, (**cvunit** 10 "hour" "day") converts *from* hours *to* days). If the two units of measurement are incompatible, a nil is returned.
The units of measurements are found in the *ICAD.unt* file. For more information on customizing this file, see Chapter 17, "Customizing GstarCAD," in the *GstarCAD User's Guide.*
### Examples
| Code | Returns |
| --- | --- |
| (**cvunit** 1 "day" "second") | 86400.0 |
| (**cvunit** 2 "meter" "yard") | 2.1872 |
| (**cvunit** '(2 3\) "mile" "feet") | (10560.0 15840.0) |
**NOTE** Points (or lists of numbers) can be converted, too, as shown by the above examples.
**Tell me about...**
[(angtof string \[mode\])](%28angtof%20string%20-mode-%29.md)
[(angtos angle \[mode \[precision\]\])](%28angtos%20angle%20-mode%20-precision-%29.md)
[(ascii string)](%28ascii%20string%29.md)
[(atof string)](IDR_LISP_B131.md)
[(atoi string)](%28atoi%20string%29.md)
[(chr integer)](%28chr%20integer%29.md)
[(distof string \[mode\])](%28distof%20string%20-mode-%29.md)
[(fix number)](%28fix%20number%29.md)
[(float number)](%28float%20number%29.md)
[(itoa integer)](%28itoa%20integer%29.md)
[(rtos number \[mode \[precision\]\])](%28rtos%20number%20-mode%20-precision-%29.md)
[(strcase string \[flag\])](%28strcase%20string%20-flag-%29.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28cvunit%20value%20from%20to%29.md)