代表分数的数学符号是什么? [英] What would be the math symbol for representing a fraction?

查看:435
本文介绍了代表分数的数学符号是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以HTML格式显示 2/3 (即2除以3),我不想使用 / 。什么是正确的符号来格式分数/部门使用HTML?

I would like to shown 2/3 (i.e. 2 divided by 3) in a HTML format and I don't want to use /. What would be the right symbol to format fractions/division using HTML?

推荐答案

从你的评论看,你看起来像具体询问如何显示分数。如果是这种情况,许多分数被定义为HTML实体。作为一个例子,这些实体中有一些是:

Judging by your comments, it looks like you're specifically asking how to display fractions. If that's the case, many fractions are defined as HTML entities. As an example, a few of those entities are:

½ ¼ ⅛ ⅔ ⅖ ¾ ⅜

结果:

Result:


½ ¼ ⅛ ⅔ ⅖ ¾ ⅜

½ ¼ ⅛ ⅔ ⅖ ¾ ⅜

请注意,并非所有浏览器都支持这些命名实体,但您可以使用它们的Unicode值。如果您希望能够显示任何分数而不仅仅是具有实体的分数,则可以使用分数斜杠实体& frasl; (⁄)。这个字符与来自前面和后面字符的像素重叠,以形成非常整洁的分数。当与上标和下标数字结合使用时,它是最好的:

Note that not all browsers support those named entities, but you could use their Unicode values instead. If you want to be able to display any fraction and not just the ones that have entities, you can use the fraction slash entity, ⁄ ( ⁄ ). This character overlaps pixels from the preceding and following characters to make a very neat fraction. It's best used when combined with superscript and subscript numbers:

<sup>39</sup>&frasl;<sub>40</sub>

结果:

Result:


39 40

3940

进一步阅读:

http: //changelog.ca/log/2008/07/01/writing_fractions_in_html

如果您使用的字体支持它,您也可以将下标和上标数字直接粘贴到来自应用程序(如charmap.exe)的HTML中。查看康拉德鲁道夫的优秀答案为例。

If the font you're using supports it, you may also be able to paste the subscript and superscript numbers directly into your HTML from an application like charmap.exe. See Konrad Rudolph's excellent answer for an example.

这篇关于代表分数的数学符号是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆