220 31809 <58DA6FC5.3090408@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Number Concept Family
Date: Tue, 28 Mar 2017 10:14:29 -0400
Lines: 24
Approved: news@gmane.org
Message-ID: <58DA6FC5.3090408@gmail.com>
References: <50075dd2-ae2a-4022-8e94-196d44e34687@isocpp.org>
 <49308661-71b7-f4a1-b2b2-d5320f6b5372@wanadoo.fr>
 <CACL3gUWmvEZUvbRFo=7h+OELh9CbzxMwEny1yZEGw=EtbUmT0Q@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1490710488 14365 195.159.176.226 (28 Mar 2017 14:14:48 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 28 Mar 2017 14:14:48 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBR675HDAKGQE5XJH3QI@isocpp.org Tue Mar 28 16:14:36 2017
Return-path: <std-proposals+bncBC37LBFWUIFBBR675HDAKGQE5XJH3QI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f197.google.com ([209.85.216.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBR675HDAKGQE5XJH3QI@isocpp.org>)
	id 1csrtC-0001a3-Nr
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Mar 2017 16:14:26 +0200
Original-Received: by mail-qt0-f197.google.com with SMTP id 30sf51732221qtw.19
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 Mar 2017 07:14:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=1lZuN3K0Ex+VdttFAOkxR9GH7fASXs8zRYA3mVz+tRo=;
        b=QFVHmJhXUW/kn8sjFyLeKqrxdky5d2CXgMFcFrzEsDHvf0TYkC3fawy33TGJJsShGZ
         j1jwY+9g51tyZwgfLzdseSO9CIDIOVwAU+u9PCVXXkaGV1QrM5UWK3MQJDW7nA22/fR2
         CcZjnSLl1cqAy9Vu2DDxv0Ymq3ft1wv0VXXbOPF2itiOlQziJTuEgNIRrBIubDhz4Wqy
         1VgraGknn2qy2ik5vSHJdQtrFwlgrQZd9MPdlGZfcueLRBMX+POSDMaymGoE5kY76e7O
         HcVgZiUMYS5bdgHwG3wElYklqfyaA+vbPUWo59myG9FiWWJe9JYLcogh34lDb+RVrwic
         xTDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=1lZuN3K0Ex+VdttFAOkxR9GH7fASXs8zRYA3mVz+tRo=;
        b=faki1Td+dkDIyOVS0fyi+Vx58MQCb/MHrV60Ig880/PVE/2S7XJ9t7un9ijlooN43Y
         SrQ0AOzg+/mA+xoBJRiz4DC0MZZEeA2ozWQGD1xkdybZ5KmcR8FhLlYv2YTqVfPPTome
         g2HflIwW0L/nz2Pail47L2EEsFpcyqoqaWQ6yxR7LxUlHL5y949VLvcdMiUB22u7pqE6
         6cSSbcrKgLxbtS+7LZYoWbY56gUITcjjp6oS8nNg9Q8g9r/SKIYsS0NOYqwIMg8NkIpw
         6ZL2kkOMlb0vetQtb9vtGBtjwfLHrZtYn9Mcox3pHcimYFctMWozJyojk2yIzcB+zIKz
         VFEA==
X-Gm-Message-State: AFeK/H3QCG0pfaExN0ERhvkadV9m4V4nXVgZwc9c75zIcUY8dgsFJ7TNh1WmvnWm6JkDxQ==
X-Received: by 10.237.60.12 with SMTP id t12mr8933244qte.38.1490710472581;
        Tue, 28 Mar 2017 07:14:32 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.42.101 with SMTP id t92ls1252760ota.41.gmail; Tue, 28 Mar
 2017 07:14:31 -0700 (PDT)
X-Received: by 10.157.14.28 with SMTP id c28mr13677779otc.228.1490710471410;
        Tue, 28 Mar 2017 07:14:31 -0700 (PDT)
Original-Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com. [2607:f8b0:4003:c06::231])
        by mx.google.com with ESMTPS id 102si2102847otd.86.2017.03.28.07.14.31
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Mar 2017 07:14:31 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:4003:c06::231 as permitted sender) client-ip=2607:f8b0:4003:c06::231;
Original-Received: by mail-oi0-x231.google.com with SMTP id f193so40240563oib.2
        for <std-proposals@isocpp.org>; Tue, 28 Mar 2017 07:14:31 -0700 (PDT)
X-Received: by 10.202.48.19 with SMTP id w19mr10016539oiw.87.1490710471086;
        Tue, 28 Mar 2017 07:14:31 -0700 (PDT)
Original-Received: from [192.168.1.176] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id j125sm1735256oib.27.2017.03.28.07.14.30
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Mar 2017 07:14:30 -0700 (PDT)
In-Reply-To: <CACL3gUWmvEZUvbRFo=7h+OELh9CbzxMwEny1yZEGw=EtbUmT0Q@mail.gmail.com>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 mwoehlke.floss@gmail.com designates 2607:f8b0:4003:c06::231 as permitted
 sender) smtp.mailfrom=mwoehlke.floss@gmail.com;       dmarc=pass (p=NONE
 sp=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:31809
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31809>

On 2017-03-26 16:05, Christopher Di Bella wrote:
> On 2017-03-26 11:24, Vicente J. Botet Escriba wrote:
>> I don't see the operator% on you clasification
> 
> operator% is a tricky one: floating-point numbers don't support operator%.
> Does it make sense to use operator% on a some type that isn't an integer?
> If so, it would be a good addition for RegularNumber/FieldNumber, but I
> think there should be a general group of numbers that we can use operator%
> on.

FWIW, I'm not aware of the historical reasons why `operator%` is not
defined for floating point types, but it certainly isn't because you
can't do modulo arithmetic on them... for some reason, that operation
for floating points is spelled `fmod` instead of `operator%`.

-- 
Matthew

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/58DA6FC5.3090408%40gmail.com.

.
