.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarNumFromParseNum 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarNumFromParseNum\fR (OLEAUT32.47) .SH SYNOPSIS HRESULT VarNumFromParseNum ( NUMPARSE* \fIpNumprs\fR, BYTE* \fIrgbDig\fR, ULONG \fIdwVtBits\fR, VARIANT* \fIpVarDst\fR ) .SH DESCRIPTION .PP Convert a \fBNUMPARSE\fR structure into a numeric Variant type. .SH PARAMS \fIpNumprs\fR \fB[In]\fR Source for parsed number. cDig must be set to the size of \fIrgbDig\fR. .PP \fIrgbDig\fR \fB[In]\fR Source for the numbers digits. .PP \fIdwVtBits\fR \fB[In]\fR \fBVTBIT_\fR flags from \fB"oleauto.h"\fR indicating the acceptable dest types. .PP \fIpVarDst\fR \fB[Out]\fR Destination for the converted Variant value. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. \fIpVarDst\fR contains the converted value. .PP \fBFailure:\fR \fBE_INVALIDARG\fR, if any parameter is invalid. \fBDISP_E_OVERFLOW\fR, if the number is too big for the types set in \fIdwVtBits\fR. .SH NOTES .PP \fB-\fR The smallest favoured type present in \fIdwVtBits\fR that can represent the number in \fIpNumprs\fR without losing precision is used. .PP \fB-\fR Signed types are preferred over unsigned types of the same size. .PP \fB-\fR Preferred types in order are: integer, float, double, currency then decimal. .PP \fB-\fR Rounding (dropping of decimal points) occurs without error. See \fBVarI8FromR8(3w)\fR for details of the rounding method. .PP \fB-\fR \fIpVarDst\fR is not cleared before the result is stored in it. .PP \fB-\fR WinXP and Win2003 support \fBVTBIT_I8\fR, \fBVTBIT_UI8\fR but that's buggy (by design?): If some other \fBVTBIT\fR's for integers are specified together with \fBVTBIT_I8\fR and the number will fit only in a \fBVT_I8\fR Windows(tm) will \fB"cast"\fR the number to the smallest requested integer truncating this way the number. Wine doesn't implement this \fB"feature"\fR (yet?). .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/variant.c"\fR. .PP Debug channel \fB"variant"\fR.