source:
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Extensions/LongExtensions.cs
@
16099
Last change on this file since 16099 was 15771, checked in by bburlacu, 7 years ago | |
---|---|
File size: 231 bytes |
Rev | Line | |
---|---|---|
[15017] | 1 | using System; |
2 | ||
[15771] | 3 | namespace HeuristicLab.Problems.ProgramSynthesis { |
[15017] | 4 | public static class LongExtensions { |
5 | public static int AsInt(this long value, int length) { | |
6 | return (int)Math.Abs(value % length); | |
7 | } | |
8 | } | |
9 | } |
Note: See TracBrowser
for help on using the repository browser.