vb.net - Convert c# code to VB -


i using math function. code below.it c# code .please convert vb using ctype(variable,type). tried end in vain

 itmpwidth = (integer)(math.floor((double)((double)gridcol.width /                                    (double)itotalwidth * (double)itotalwidth *                                    ((double)e.marginbounds.width / (double)itotalwidth)))) 

please .

try one:

itmpwidth = directcast(math.floor(cdbl(cdbl(gridcol.width)      / cdbl(itotalwidth) * cdbl(itotalwidth) * (cdbl(e.marginbounds.width)      / cdbl(itotalwidth)))), [integer]); 

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -