Show / Hide Table of Contents

Class StringShim

String formatting methods

Inheritance
System.Object
StringShim
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: InventorShims
Assembly: InventorShims.dll
Syntax
public static class StringShim

Methods

| Improve this Doc View Source

ToFractionStringRoundedUp(Double, Int32)

Takes a double of inches and returns the string of a fraction equivalent.

If you want to round to 1/8" of an inch, pass 8 as roundingAccuracy

Supports up to 1/32 rounding accuracy, which would be passed in as 32

Declaration
public static string ToFractionStringRoundedUp(this double inputNum, int roundingAccuracy = 8)
Parameters
Type Name Description
System.Double inputNum
System.Int32 roundingAccuracy
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX