CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

MulDiv函数到底是用来干什么的啊?

楼主kevin0182(雨亭)2004-09-03 12:32:40 在 VC/MFC / 基础类 提问

MulDiv函数到底是用来干什么的啊? 问题点数:0、回复次数:5Top

1 楼DentistryDoctor(不在无聊中无奈,就在沉默中变态)回复于 2004-09-03 12:35:35 得分 0

The   MulDiv   function   multiplies   two   32-bit   values   and   then   divides   the   64-bit   result   by   a   third   32-bit   value.   The   return   value   is   rounded   up   or   down   to   the   nearest   integer.  
   
  MulDiv(a,b,c)  
  =a*b/c;Top

2 楼bohut(●伯虎● )回复于 2004-09-03 12:45:32 得分 0

MulDiv  
   
  The   MulDiv   function   multiplies   two   32-bit   values   and   then   divides   the   64-bit   result   by   a   third   32-bit   value.   The   return   value   is   rounded   up   or   down   to   the   nearest   integer.  
   
   
  int   MulDiv(  
      int   nNumber,  
      int   nNumerator,  
      int   nDenominator  
  );  
   
  Parameters  
  nNumber    
  [in]   Multiplicand.    
  nNumerator    
  [in]   Multiplier.    
  nDenominator    
  [in]   Number   by   which   the   result   of   the   multiplication   (nNumber   *   nNumerator)   is   to   be   divided.    
  Return   Values  
  If   the   function   succeeds,   the   return   value   is   the   result   of   the   multiplication   and   division.   If   either   an   overflow   occurred   or   nDenominator   was   0,   the   return   value   is   –1.  
   
  Top

3 楼carbon107(<软件开发思想.h>)回复于 2004-09-03 13:35:07 得分 0

先乘,再除Top

4 楼kevin0182(雨亭)回复于 2004-09-03 14:00:51 得分 0

#define CALCX(x)     (MulDiv(x,   GetDeviceCaps(m_DC.m_hDC,   LOGPIXELSX),   72))  
  这是干什么用的啊?是什么意思?Top

5 楼jazy()回复于 2004-09-03 14:31:13 得分 0

算字体大小的吧?一英寸有72个点,这里应该是在是算x个点折合多少象素。Top

相关问题

  • getchild()函数是用来干什么的?
  • CAsyncSocket类的Flush()函数是用来干什么的?
  • GetProfileInt这个函数是用来干什么的?
  • 什么是Callback函数?它是用来干什么的啊?
  • 问一个弱的问题,system()函数,是用来干什么的
  • Dispatchmessage()函数是干什么?
  • 谁能讲讲下面几个函数怎么用?看了MSDN,但不知道它是用来干什么的
  • presubclasswindow()函数是干什么的?
  • CBool是什么函数,干什么的?
  • 这个函数是干什么的?

关键词

  • 32-bit
  • muldiv
  • ndenominator
  • nnumerator
  • 干什么
  • multiplier
  • divided
  • bit
  • result
  • function

得分解答快速导航

  • 帖主:kevin0182

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo