Changeset 74cbaa3 for libcfa


Ignore:
Timestamp:
Nov 8, 2024, 5:20:49 PM (4 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
464cfc7
Parents:
44e2a5a
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/rational.cfa

    r44e2a5a r74cbaa3  
    1010// Created On       : Wed Apr  6 17:54:28 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Aug  2 07:41:25 2024
    13 // Update Count     : 199
     12// Last Modified On : Fri Nov  8 17:00:38 2024
     13// Update Count     : 205
    1414//
    1515
     
    203203
    204204        forall( ostype & | ostream( ostype ) | { ostype & ?|?( ostype &, T ); } ) {
    205                 ostype & ?|?( ostype & os, rational(T) r ) {
     205        ostype & ?|?( ostype & os, rational(T) r ) {
    206206                        return os | r.numerator | '/' | r.denominator;
    207207                } // ?|?
     
    211211
    212212forall( T | arithmetic( T ) | { T ?\?( T, unsigned long ); } ) {
    213         rational(T) ?\?( rational(T) x, long int y ) {
     213rational(T) ?\?( rational(T) x, long int y ) {
    214214                if ( y < 0 ) {
    215215                        return (rational(T)){ x.denominator \ -y, x.numerator \ -y };
Note: See TracChangeset for help on using the changeset viewer.